AC_HEADER_STDC
-AC_CHECK_HEADERS(stdbool.h)
-
AC_CHECK_SIZEOF(short,cross)
AC_CHECK_SIZEOF(int,cross)
AC_CHECK_SIZEOF(long,cross)
if test $ac_cv_sizeof_long_long -lt 8;then
AC_MSG_ERROR([Sorry we need sizeof(long long) >= 8])
fi
-AC_CHECK_TYPE(_Bool)
-
AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h)
AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
AC_CHECK_HEADERS(fnmatch.h pwd.h sys/termio.h sys/time.h sys/statfs.h sys/statvfs.h stdarg.h)
-AC_CHECK_HEADERS(stdint.h inttypes.h locale.h shadow.h)
+AC_CHECK_HEADERS(locale.h shadow.h)
AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h)
AC_CHECK_HEADERS(sys/capability.h sys/acl.h)
arg->arg_val.nval = va_arg(ap, uint64_t);
break;
case ARG_BOOL:
- arg->arg_val.bval = va_arg(ap, BOOL);
+ arg->arg_val.bval = va_arg(ap, int);
break;
case ARG_PATHNAME:
arg->arg_val.pval = va_arg(ap, char *);
#include "libcli/util/nt_status.h"
+typedef int BOOL;
+
#define False (0)
#define True (1)
-#define Auto (2)
-
-typedef int BOOL;
/* used to hold an arbitrary blob of data */
typedef struct datablob {
#include <stddef.h>
#include <sys/time.h>
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifndef __cplusplus
typedef unsigned char uchar;
+#ifndef __bool_true_false_are_defined
typedef int bool;
#endif
+#endif
/*
* Porters: put other operating system type defines here
readline (the library)
Types:
+bool
socklen_t
u_int{8,16,32}_t
uint_t
+AC_CHECK_HEADERS([stdint.h inttypes.h])
AC_CHECK_TYPE(uint_t, unsigned int)
AC_CHECK_TYPE(int8_t, signed char)
AC_CHECK_TYPE(uint8_t, unsigned char)
AC_CHECK_FUNCS([syslog memset setnetgrent getnetgrent endnetgrent memcpy],,
[AC_MSG_ERROR([Required function not found])])
+AC_CHECK_HEADERS(stdbool.h)
+
sinclude(lib/replace/readline.m4)
sinclude(lib/replace/getpass.m4)
#define QSORT_CAST (int (*)(const void *, const void *))
#endif
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifndef HAVE_STRERROR
extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]
#define INT32_MAX _TYPE_MAXIMUM(int32_t)
#endif
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+#define __bool_true_false_are_defined
+typedef bool int;
+#define false (0)
+#define true (1)
+#endif
+
#endif
struct param_context;
struct smbsrv_connection;
+#define Auto (2)
+
#include "param/proto.h"
#endif /* _PARAM_H */