This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] cygwin: include sys/types.h in sys/xattr.h


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f4edc7fd6d2cf696bfa083c20e5fdd632a47d71f

commit f4edc7fd6d2cf696bfa083c20e5fdd632a47d71f
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Fri Jun 3 03:34:11 2016 -0500

    cygwin: include sys/types.h in sys/xattr.h
    
    Using libattr's <xattr/xattr.h> requires consumers to explicitly include
    <sys/types.h> first, but glibc's header in sys/ already contains the include.
    
    Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

Diff:
---
 winsup/cygwin/include/sys/xattr.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/include/sys/xattr.h b/winsup/cygwin/include/sys/xattr.h
index 1f32392..902bb86 100644
--- a/winsup/cygwin/include/sys/xattr.h
+++ b/winsup/cygwin/include/sys/xattr.h
@@ -13,6 +13,7 @@ details. */
 #ifndef _SYS_XATTR_H
 #define _SYS_XATTR_H
 
+#include <sys/types.h>
 #include <attr/xattr.h>
 
 #endif /* _SYS_XATTR_H */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]