Skip to content

Commit

Permalink
Merge pull request #19 from ddysher/master
Browse files Browse the repository at this point in the history
Fix popen_noshell-buildfix.patch
  • Loading branch information
houqp committed Jun 9, 2013
2 parents 8fbb087 + a27d246 commit f5937c0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions popen-noshell/popen_noshell-buildfix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,6 @@ Index: popen_noshell.c
===================================================================
--- popen_noshell.c (revision 8)
+++ popen_noshell.c (working copy)
@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses>.
*/

+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include "popen_noshell.h"
#include <errno.h>
#include <unistd.h>
@@ -28,10 +32,6 @@
#include <sys/wait.h>
#include <stdlib.h>
#include <inttypes.h>
-
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <sched.h>

/*
@@ -249,7 +249,7 @@
* The above malloc() + align implementation is taken from:
* http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-that-stumped-me
Expand Down

0 comments on commit f5937c0

Please sign in to comment.