summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-30 17:34:49 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-30 17:38:41 +0100
commitcdca75dee67ebfee62b44273d7d5ae5f123c477b (patch)
tree66115e9fa91dcca1c8c7ec6e3661cfeddebcd197 /source4
parent73dbbe0d5406d1852f85a17b506a4b943ad1926f (diff)
downloadsamba-cdca75dee67ebfee62b44273d7d5ae5f123c477b.tar.gz
samba-cdca75dee67ebfee62b44273d7d5ae5f123c477b.tar.bz2
samba-cdca75dee67ebfee62b44273d7d5ae5f123c477b.zip
heimdal: don't include <sys/cdefs.h> without knowing it's there
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/lib/roken/vis.hin2
-rw-r--r--source4/heimdal_build/vis.h11
2 files changed, 13 insertions, 0 deletions
diff --git a/source4/heimdal/lib/roken/vis.hin b/source4/heimdal/lib/roken/vis.hin
index 64274526e4..06a250c6d8 100644
--- a/source4/heimdal/lib/roken/vis.hin
+++ b/source4/heimdal/lib/roken/vis.hin
@@ -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
diff --git a/source4/heimdal_build/vis.h b/source4/heimdal_build/vis.h
index 13b39aa184..4389993ebd 100644
--- a/source4/heimdal_build/vis.h
+++ b/source4/heimdal_build/vis.h
@@ -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