heimdal: don't include <sys/cdefs.h> without knowing it's there
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Jan 2009 16:34:49 +0000 (17:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 30 Jan 2009 16:38:41 +0000 (17:38 +0100)
metze

source4/heimdal/lib/roken/vis.hin
source4/heimdal_build/vis.h

index 64274526e47a556dd2d2cd3b90e0a8172a1f638c..06a250c6d856b7b8131db20893cce304d63e6daf 100644 (file)
@@ -80,7 +80,9 @@
  */
 #define        UNVIS_END       1       /* no more characters */
 
+#ifdef HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
+#endif
 
 __BEGIN_DECLS
 char * ROKEN_LIB_FUNCTION
index 13b39aa1843fd166ffd97ec8c9768cf87b3dab45..4389993ebd95d958aa252f05a82306f909d99b65 100644 (file)
@@ -1,4 +1,15 @@
 #ifndef _HEIMDAL_BUILD_VIS_H
 #define _HEIMDAL_BUILD_VIS_H
+
+#include "system/locale.h"
+
+#ifndef __BEGIN_DECLS
+#define __BEGIN_DECLS
+#endif
+
+#ifndef __END_DECLS
+#define __END_DECLS
+#endif
+
 #include "heimdal/lib/roken/vis.hin"
 #endif