chiark / gitweb /
tiresome portability fix for pread on squeeze
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 17:56:03 +0000 (17:56 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 17:56:03 +0000 (17:56 +0000)
main.c

diff --git a/main.c b/main.c
index 38bd854..80458e1 100644 (file)
--- a/main.c
+++ b/main.c
  * GNU General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
+#include <publib.h>
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
@@ -35,7 +39,6 @@
 #include <sys/uio.h>
 #include <sys/fcntl.h>
 
-#include <publib.h>
 #include <glpk.h>
 
 /*