Rename UNUSED macro to OVS_UNUSED to avoid naming conflict.
[openvswitch] / lib / timeval.h
index 660a2074c90fecc7fd0b495a6445a18832072a4d..e9401626242f9242a94ed72570572182695ecebf 100644 (file)
 #include "type-props.h"
 #include "util.h"
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 struct pollfd;
 struct timeval;
 
@@ -41,6 +45,7 @@ BUILD_ASSERT_DECL(TYPE_IS_SIGNED(time_t));
 #define TIME_UPDATE_INTERVAL 100
 
 void time_init(void);
+void time_postfork(void);
 void time_refresh(void);
 time_t time_now(void);
 long long int time_msec(void);
@@ -48,4 +53,8 @@ void time_timeval(struct timeval *);
 void time_alarm(unsigned int secs);
 int time_poll(struct pollfd *, int n_pollfds, int timeout);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* timeval.h */