aboutsummaryrefslogtreecommitdiffstats
path: root/src/select.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-17 15:32:35 +0100
committerHarald Welte <laforge@gnumonks.org>2017-05-17 15:32:35 +0100
commit1d604d8be409b7678452c41936d3b78d05712595 (patch)
treed8a97b2846b0a7bacc48eecf73730d7a9798d130 /src/select.c
parent898ffefde4198a23a92810a9cf39ff6846f3bb39 (diff)
src/select.c: Don't #include <sys/select.h> if it doesn't exist
We have to #include <sys/select.h> inside the block protected by HAVE_SYS_SELECT_H, otherwise it will fail on (embedded) builds where that file doesn't exist, such as the arm-none-eabi target on Debian stable and Ubuntu 16.04. Change-Id: I82a2dcbc55b6ee0e914881c5e09b80506c5de4f2
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 8ed7f1bd..afc8198e 100644
--- a/src/select.c
+++ b/src/select.c
@@ -24,7 +24,6 @@
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
-#include <sys/select.h>
#include <osmocom/core/select.h>
#include <osmocom/core/linuxlist.h>
@@ -33,6 +32,7 @@
#include "../config.h"
#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
/*! \addtogroup select
* @{