* include/cygwin/types.h: Move #include <sys/sysmacros.h> to

end of header so that it gets the dev_t typedef.
* include/sys/sysmacros.h (gnu_dev_major, gnu_dev_minor,
gnu_dev_makedev): Prototype and define as inline functions.
(major, minor, makedev): Redefine in terms of gnu_dev_*.
This commit is contained in:
Yaakov Selkowitz
2011-04-05 00:53:17 +00:00
parent 8b09538c94
commit ddebf19a2a
3 changed files with 37 additions and 5 deletions

View File

@ -17,7 +17,6 @@ extern "C"
{
#endif
#include <sys/sysmacros.h>
#include <stdint.h>
#include <endian.h>
@ -219,6 +218,9 @@ typedef class pthread_rwlockattr *pthread_rwlockattr_t;
typedef class semaphore *sem_t;
#endif /* __INSIDE_CYGWIN__ */
/* this header needs the dev_t typedef */
#include <sys/sysmacros.h>
#ifdef __cplusplus
}
#endif