Add extern "C" { ... } to some header files to support usage from C++.
[sliver-openvswitch.git] / lib / timeval.h
index 8567d75..e940162 100644 (file)
 #include "type-props.h"
 #include "util.h"
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 struct pollfd;
 struct timeval;
 
@@ -49,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 */