macos: add support for MacOS 11.0
[openafs.git] / src / cf / autoheader.m4
1 AC_DEFUN([OPENAFS_AUTOHEADER_TOP],[
2     AH_TOP([
3 #ifndef __AFSCONFIG_H
4 #define __AFSCONFIG_H 1])
5 ])
6 AC_DEFUN([OPENAFS_AUTOHEADER_BOTTOM],[
7     AH_BOTTOM([
8 #undef HAVE_RES_SEARCH
9 #undef STRUCT_SOCKADDR_HAS_SA_LEN
10 #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
11 # if ENDIANESS_IN_SYS_PARAM_H
12 #  ifndef KERNEL
13 #   include <sys/types.h>
14 #   include <sys/param.h>
15 #   if BYTE_ORDER == BIG_ENDIAN
16 #    define WORDS_BIGENDIAN 1
17 #   endif
18 #  else
19 #   if defined(AUTOCONF_FOUND_BIGENDIAN)
20 #    define WORDS_BIGENDIAN 1
21 #   else
22 #    undef WORDS_BIGENDIAN
23 #   endif
24 #  endif
25 # else
26 #  if defined(AUTOCONF_FOUND_BIGENDIAN)
27 #   define WORDS_BIGENDIAN 1
28 #  else
29 #   undef WORDS_BIGENDIAN
30 #  endif
31 # endif
32 #else
33 # if defined(__BIG_ENDIAN__)
34 #  define WORDS_BIGENDIAN 1
35 # else
36 #  undef WORDS_BIGENDIAN
37 # endif
38 #endif
39 #ifdef UKERNEL
40 /*
41  * Always use 64-bit file offsets for UKERNEL code. Needed for UKERNEL stuff to
42  * play nice with some other interfaces like FUSE. We technically only would
43  * need to define this when building for such interfaces, but set it always to
44  * try and reduce potential confusion.
45  */
46 # define _FILE_OFFSET_BITS 64
47 # define AFS_CACHE_VNODE_PATH
48 #endif
49
50 #undef AFS_NAMEI_ENV
51 #undef BITMAP_LATER
52 #undef FAST_RESTART
53 #undef DEFINED_FOR_EACH_PROCESS
54 #undef DEFINED_PREV_TASK
55 #undef EXPORTED_SYS_CALL_TABLE
56 #undef EXPORTED_IA32_SYS_CALL_TABLE
57 #undef IRIX_HAS_MEM_FUNCS
58 #undef RECALC_SIGPENDING_TAKES_VOID
59 #undef STRUCT_FS_HAS_FS_ROLLED
60 #undef ssize_t
61 /* glue for RedHat kernel bug */
62 #undef ENABLE_REDHAT_BUILDSYS
63 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
64 # include "redhat-fix.h"
65 #endif
66 #endif /* __AFSCONFIG_H */])
67 ])