* 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:
@ -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
|
||||
|
Reference in New Issue
Block a user