OSDN Git Service

Include the POSIX fcntl.h instead of sys/fcntl.h
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 10 Feb 2015 14:55:19 +0000 (14:55 +0000)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 12 Feb 2015 22:10:10 +0000 (14:10 -0800)
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>
src/pciaccess_private.h

index 9f4e8f9..2f05b29 100644 (file)
@@ -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.