This is the mail archive of the cygwin 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]

__mode_t missing from /usr/include/cygwin/types.h


All,
  In trying to compile splint from cvs, I ran into
the problem of __mode_t not being defined.  Linux
defines it in types.h so that is where I put it.
Splint built w/o problems after this change;
unfortunately the bug I was hoping would be fixed in
CVS wasn't :(

Unified diff follows:

diff -u types.h types.h.orig
--- types.h     2005-01-15 23:53:22.332070400 -0600
+++ types.h.orig        2004-09-04 22:17:39.001000000
-0500
@@ -183,8 +183,7 @@
 
 #ifndef __mode_t_defined
 #define __mode_t_defined
-typedef unsigned __mode_t;
-typedef __mode_t mode_t;
+typedef unsigned mode_t;
 #endif
 #endif /*__BIT_TYPES_DEFINED*/


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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