s4:heimdal_build: undefine __APPLE__ as we don't need that magic
[kai/samba.git] / source4 / heimdal_build / config.h
index 660739c73f4c1be21318d6dc865c6cad65d5e333..2cf36d3e5fad467d02c8ac50d292ef67c24cf2b8 100644 (file)
@@ -4,67 +4,33 @@
 */
 
 #ifndef HAVE_HEIMDAL_CONFIG_H
-#define HAVE_HEIMDAL_CONFIG_H 1
+#define HAVE_HEIMDAL_CONFIG_H
 
-/* bring in the samba4 config.h */
 #include "include/config.h"
+#include "../replace/replace.h"
 
-#ifdef HAVE_KRB5
-
-#define RCSID(msg) \
-static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
+#define RCSID(msg) struct __rcsid { int __rcsdi; }
+#define KRB5
 
+/* This needs to be defined for roken too */
 #ifdef VOID_RETSIGTYPE
 #define SIGRETURN(x) return
 #else
 #define SIGRETURN(x) return (RETSIGTYPE)(x)
 #endif
 
-/* path to sysconf - should we force this to samba LIBDIR ? */
-#define SYSCONFDIR "/etc"
-
-
-/* Maximum values on all known systems */
-#define MaxHostNameLen (64+4)
-#define MaxPathLen (1024+4)
-
-#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
-
-/* even if we do have dlopen, we don't want heimdal using it */
-#undef HAVE_DLOPEN
-
-#define VERSION "Samba"
-
-#define ROKEN_LIB_FUNCTION
-
-/* these should be done with configure tests */
-#define KRB5
-
-#include <sys/types.h>
-#include <stdarg.h>
-#include "lib/replace/replace.h"
-#endif
-
-/* we need to tell roken about the functions that Samba replaces in lib/replace */
-#ifndef HAVE_SETEUID
-#define HAVE_SETEUID 1
-#endif
-
-#define GETHOSTBYADDR_PROTO_COMPATIBLE
-#define GETSERVBYNAME_PROTO_COMPATIBLE
-#define OPENLOG_PROTO_COMPATIBLE
-#define GETSOCKNAME_PROTO_COMPATIBLE
+#define HDB_DB_DIR ""
 
-#ifndef HAVE_SOCKLEN_T
-#define HAVE_SOCKLEN_T
-#endif
+#undef HAVE_KRB5_ENCRYPT_BLOCK
 
-#ifndef HAVE_STRNDUP
-#define HAVE_STRNDUP
+/*Workaround for heimdal define vs samba define*/
+#ifdef HAVE_LIBINTL_H
+#define LIBINTL
 #endif
 
-#ifndef HAVE_SSIZE_T
-#define HAVE_SSIZE_T
+/* we do not want any __APPLE__ magic */
+#ifdef __APPLE__
+#undef __APPLE__
 #endif
 
 #endif