opensolaris compat: fix compile error
when opensolaris/sys/types.h is included before stddef.h ptrdiff_t would be typedef'd twice
This commit is contained in:
parent
6e34355671
commit
1abd10a2ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335920
@ -72,7 +72,10 @@ typedef u_int minor_t;
|
||||
|
||||
typedef short index_t;
|
||||
typedef off_t offset_t;
|
||||
typedef long ptrdiff_t; /* pointer difference */
|
||||
#ifndef _PTRDIFF_T_DECLARED
|
||||
typedef __ptrdiff_t ptrdiff_t; /* pointer difference */
|
||||
#define _PTRDIFF_T_DECLARED
|
||||
#endif
|
||||
typedef int64_t rlim64_t;
|
||||
typedef int major_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user