* [PATCH] Fix warning in winsup/cygserver
@ 2011-08-18 18:54 Yaakov (Cygwin/X)
2011-08-18 19:21 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Yaakov (Cygwin/X) @ 2011-08-18 18:54 UTC (permalink / raw)
To: cygwin-patches
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
The attached patch fixes the following warning:
/usr/src/cygwin/winsup/cygserver/sysv_shm.cc:71:0: warning:
"ACCESSPERMS" redefined
/usr/src/cygwin/newlib/libc/include/sys/stat.h:126:0: note: this is the
location of the previous definition
Yaakov
[-- Attachment #2: cygserver-redefinition-warning.patch --]
[-- Type: text/x-patch, Size: 709 bytes --]
2011-08-18 Yaakov Selkowitz <yselkowitz@...>
* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
this is now defined in <sys/stat.h>.
Index: sysv_shm.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygserver/sysv_shm.cc,v
retrieving revision 1.10
diff -u -p -r1.10 sysv_shm.cc
--- sysv_shm.cc 5 Nov 2007 15:45:52 -0000 1.10
+++ sysv_shm.cc 18 Aug 2011 18:32:23 -0000
@@ -68,7 +68,6 @@ __FBSDID("$FreeBSD: /repoman/r/ncvs/src/
#endif
#define btoc(b) (((b) + PAGE_MASK) / PAGE_SIZE)
#define round_page(p) ((((unsigned long)(p)) + PAGE_MASK) & ~(PAGE_MASK))
-#define ACCESSPERMS (0777)
#ifdef __CYGWIN__
#define GIANT_REQUIRED
#else
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix warning in winsup/cygserver
2011-08-18 18:54 [PATCH] Fix warning in winsup/cygserver Yaakov (Cygwin/X)
@ 2011-08-18 19:21 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2011-08-18 19:21 UTC (permalink / raw)
To: cygwin-patches
On Aug 18 13:54, Yaakov (Cygwin/X) wrote:
> * sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
> this is now defined in <sys/stat.h>.
Please apply.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-18 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-18 18:54 [PATCH] Fix warning in winsup/cygserver Yaakov (Cygwin/X)
2011-08-18 19:21 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).