mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
FreeBSD: use sys/abi_compat.h for time32_t
FreeBSD 14.5 defines time32_t in sys/abi_types.h. The SPL typedef now
duplicates it, which breaks the -std=gnu99 module build on stable/14.
Apply the same change as freebsd-src 87632ddf67.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Christos Longros <[email protected]>
Closes #19059
This commit is contained in:
1 parent
9e06573c4f
commit
0ee8ea01bc
2 files changed
+7
-1
No files matched your search
@@ -30,9 +30,10 @@
|
||||
#ifndef _SPL_TYPES32_H
|
||||
#define _SPL_TYPES32_H
|
||||
|
||||
#include <sys/abi_compat.h>
|
||||
|
||||
typedef uint32_t caddr32_t;
|
||||
typedef int32_t daddr32_t;
|
||||
typedef int32_t time32_t;
|
||||
typedef uint32_t size32_t;
|
||||
|
||||
#endif /* _SPL_TYPES32_H */
|
||||
@@ -53,7 +53,12 @@ typedef uint32_t dev32_t;
|
||||
typedef int32_t pid32_t;
|
||||
typedef uint32_t size32_t;
|
||||
typedef int32_t ssize32_t;
|
||||
#ifdef __FreeBSD__
|
||||
#include <sys/abi_compat.h>
|
||||
#endif
|
||||
#ifndef __HAVE_TIME32_T
|
||||
typedef int32_t time32_t;
|
||||
#endif
|
||||
typedef int32_t clock32_t;
|
||||
|
||||
typedef struct timespec32 {
|
||||
|
||||
Reference in new issue
Block a user