summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2014-11-26 16:54:16 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2014-11-26 16:56:07 +0100
commitd5b05dd63bb39b02a6f762eb927eb6be67ca999d (patch)
treead1485a31778d9546ddfc824312cc84b3cb79464 /ir/common
parentca3cf514d6c3a8a135c10839845b977eb9919cd2 (diff)
Undef __USE_BSD if it was not defined before.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/timing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ir/common/timing.c b/ir/common/timing.c
index 7ee932b..fa7d36c 100644
--- a/ir/common/timing.c
+++ b/ir/common/timing.c
@@ -36,8 +36,11 @@ typedef union {
*/
#ifndef __USE_BSD
#define __USE_BSD
-#endif
#include <sys/time.h>
+#undef __USE_BSD
+#else
+#include <sys/time.h>
+#endif
/* Linux timer value. */
typedef struct timeval ir_timer_val_t;