This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] Fix warning in winsup/cygserver
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Thu, 18 Aug 2011 13:54:10 -0500
- Subject: [PATCH] Fix warning in winsup/cygserver
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
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