aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 07:22:30 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 07:22:30 +0100
commit0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc (patch)
tree146d3ba2d9d7734b1102f75a9da5c2cffbbbd81f
parentce2f213b16afb4965a4b3d0b1aab1640f041c26d (diff)
downloadlibrb-0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc.tar.gz
librb-0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc.tar.bz2
librb-0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc.zip
fix: sys/time.h only needed in multi-threaded build
-rw-r--r--rb/rb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rb/rb.c b/rb/rb.c
index 08b94c0..b8ae3b8 100644
--- a/rb/rb.c
+++ b/rb/rb.c
@@ -20,12 +20,12 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/time.h>
#if ENABLE_THREADS
+# include <fcntl.h>
# include <pthread.h>
# include <sys/socket.h>
-# include <fcntl.h>
+# include <sys/time.h>
#endif
#include "rb.h"