summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2019-07-30 17:30:02 +0200
committerKim Woelders <kim@woelders.dk>2019-07-30 17:30:02 +0200
commitc423cd13f6b7b94588dccfc755055381c9d95928 (patch)
treec68b4e6a64d01e9a5ce731dd4b3cb731baf10f51
parenta91440ebf6227ef6ed33a43a5451e530eb864c92 (diff)
Include potentially missing sys/select.h
Patch by Ingo Feinerer <feinerer@logic.at>: the compilation of E16 fails on OpenBSD with following error message: enlightenment-1.0.20/e16-1.0.20/eesh/main.c:90:4: error: use of undeclared identifier 'fd_set' fd_set fd; ^ enlightenment-1.0.20/e16-1.0.20/eesh/main.c:227:2: warning: implicit declaration of function 'FD_ZERO' is invalid in C99 [-Wimplicit-function-declaration] FD_ZERO(&fd); ^ This is because FD_SET lives in the sys/select.h header in OpenBSD. This seems to be the case on newer Linux systems as well: https://linux.die.net/man/3/fd_set /* According to POSIX.1-2001 */ #include <sys/select.h>
-rw-r--r--eesh/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eesh/main.c b/eesh/main.c
index a44acecf..47b91def 100644
--- a/eesh/main.c
+++ b/eesh/main.c
@@ -21,6 +21,7 @@
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */ 23 */
24#include <sys/select.h>
24#include "E.h" 25#include "E.h"
25 26
26/* Global vars */ 27/* Global vars */