summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-02-10 14:55:19 +0000
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-02-12 14:10:10 -0800
commite42ee2a075a8b7c62b190815be42ea26c9d8c03f (patch)
tree082ecc57b674f7d7e7d245adc625f8bacf5f22f7
parentf99c2e4199ce37f6f94428df504427f67c3ec543 (diff)
downloadxorg-lib-libpciaccess-e42ee2a075a8b7c62b190815be42ea26c9d8c03f.tar.gz
Include the POSIX fcntl.h instead of sys/fcntl.h
The former is part of the POSIX standard, and (unlike the latter) is more widely available. v2: Drop gracious d in header name. Spotted by Alan. Cc: Adam Jackson <ajax@redhat.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/pciaccess_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pciaccess_private.h b/src/pciaccess_private.h
index 9f4e8f9..2f05b29 100644
--- a/src/pciaccess_private.h
+++ b/src/pciaccess_private.h
@@ -42,7 +42,7 @@
* know of any OS we support where this isn't available in a sufficiently
* new version, so warn unconditionally.
*/
-#include <sys/fcntl.h>
+#include <fcntl.h>
#ifndef O_CLOEXEC
#warning O_CLOEXEC not available, please upgrade.