Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / sysutmp.h
index f56e5d6..27d5cdd 100644 (file)
@@ -37,6 +37,10 @@ RCSIDH(sysutmp_h, "$Id$")
 #  include <utmp.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef __osf__
 #  define UT_NAMESIZE  32
 #  define UT_LINESIZE  32
@@ -98,4 +102,8 @@ struct utmp {
 
 #endif /* HAVE_UTMP_H */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* SYSUTMP_H_INCLUDED */