aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Hrubis <chrubis@suse.cz>2016-07-26 16:53:57 +0200
committerCyril Hrubis <chrubis@suse.cz>2016-07-26 16:57:34 +0200
commit96cccf4bedb8abe0421af8b56ac8b7b117b58e82 (patch)
treec17b2ec2e267e96c7e0242b6d8630a2ab6f403bb
parentc10c1c06a373f6d9891899cf135eb612b0273cae (diff)
downloadltp-96cccf4bedb8abe0421af8b56ac8b7b117b58e82.tar.gz
lapi/fcntl.h: Include system headers first.
Include the system headers first so that system constants are used if present. Also fixes build failure where SOCK_CLOEXEC was replaced with it value in a system header included after "lapi/fcntl.h" which was pulled in from tst_test.h in fcntl34. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
-rw-r--r--include/lapi/fcntl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lapi/fcntl.h b/include/lapi/fcntl.h
index 5716cc333..38e41ec6c 100644
--- a/include/lapi/fcntl.h
+++ b/include/lapi/fcntl.h
@@ -19,6 +19,9 @@
#ifndef __LAPI_FCNTL_H__
#define __LAPI_FCNTL_H__
+#include <fcntl.h>
+#include <sys/socket.h>
+
#ifndef O_CLOEXEC
# define O_CLOEXEC 02000000
#endif