#include <unistd.h>
#endif
+#ifndef HAVE_VSNPRINTF
+#include <stdarg.h>
+#endif
+
+#ifdef HAVE_SYS_LOCKING_H
+#include <sys/locking.h>
+#endif
+
/*
* Check for inclusion of <time.h>, versus <sys/time.h>
* Taken verbatim from the autoconf manual.
#define DARWIN (1)
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Functions from missing.c
*/
*/
#ifndef HAVE_VSNPRINTF
-#include <stdarg.h>
extern int vsnprintf(char *str, size_t count, const char *fmt, va_list arg);
#endif
#endif
#ifdef HAVE_SYS_LOCKING_H
-#include <sys/locking.h>
-
#define lockf _locking
#define F_ULOCK _LK_UNLCK /* Unlock locked sections. */
void timeval2ntp(const struct timeval *tv, uint8_t *ntp);
void ntp2timeval(struct timeval *tv, const char *ntp);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FR_MISSING_H */