projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "extern C {...} to header files for C++ builds.
[freeradius.git]
/
src
/
include
/
sysutmp.h
diff --git
a/src/include/sysutmp.h
b/src/include/sysutmp.h
index
8243714
..
27d5cdd
100644
(file)
--- a/
src/include/sysutmp.h
+++ b/
src/include/sysutmp.h
@@
-7,6
+7,9
@@
#ifndef SYSUTMP_H_INCLUDED
#define SYSUTMP_H_INCLUDED
#ifndef SYSUTMP_H_INCLUDED
#define SYSUTMP_H_INCLUDED
+#include <freeradius-devel/ident.h>
+RCSIDH(sysutmp_h, "$Id$")
+
/*
* If we have BOTH utmp.h and utmpx.h, then
* we prefer to use utmp.h, but only on systems other than Solaris.
/*
* If we have BOTH utmp.h and utmpx.h, then
* we prefer to use utmp.h, but only on systems other than Solaris.
@@
-34,6
+37,10
@@
# include <utmp.h>
#endif
# include <utmp.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __osf__
# define UT_NAMESIZE 32
# define UT_LINESIZE 32
#ifdef __osf__
# define UT_NAMESIZE 32
# define UT_LINESIZE 32
@@
-95,4
+102,8
@@
struct utmp {
#endif /* HAVE_UTMP_H */
#endif /* HAVE_UTMP_H */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SYSUTMP_H_INCLUDED */
#endif /* SYSUTMP_H_INCLUDED */