]> mj.ucw.cz Git - pciutils.git/commitdiff
lib/i386-ports.c: Define _GNU_SOURCE, it's needed by the Hurd module.
authorMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 11:01:44 +0000 (13:01 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 11:01:44 +0000 (13:01 +0200)
ChangeLog
lib/i386-ports.c

index 721f96ffffcf08dbff8af7919a839ef3cd1f4244..4cf2916f6f49a0b0082ee1cf9ef6bfb8f1826f39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-07-30  Martin Mares  <mj@ucw.cz>
 
+       * lib/i386-ports.c: Define _GNU_SOURCE, it's needed by the Hurd module.
+
        * lib/header.h: Whitespace cleanups.
 
        * lib/i386-io-windows.h: Fixed indentation and spelling.
index 9307ce9ea14191080cde2ab9ddc68d8191368923..23feaf355b84f64831e517377d5fceb270616953 100644 (file)
@@ -1,15 +1,17 @@
 /*
  *     The PCI Library -- Direct Configuration access via i386 Ports
  *
- *     Copyright (c) 1997--2004 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
 
-#include <unistd.h>
+#define _GNU_SOURCE
 
 #include "internal.h"
 
+#include <unistd.h>
+
 #if defined(PCI_OS_LINUX)
 #include "i386-io-linux.h"
 #elif defined(PCI_OS_GNU)