aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-09-26 16:26:27 -1000
committerHarald Hoyer <harald@redhat.com>2010-09-13 17:27:21 +0200
commit9253ed4bdddd635706a0a741259cbaa8a21d8b89 (patch)
tree215e8605fe7cdb61b369fc78f718ff3c2a43b29e
parent192392a47594d8141aaf14a0a705bc421899adb0 (diff)
downloadinitscripts-9253ed4bdddd635706a0a741259cbaa8a21d8b89.tar
initscripts-9253ed4bdddd635706a0a741259cbaa8a21d8b89.tar.gz
initscripts-9253ed4bdddd635706a0a741259cbaa8a21d8b89.tar.bz2
initscripts-9253ed4bdddd635706a0a741259cbaa8a21d8b89.tar.xz
initscripts-9253ed4bdddd635706a0a741259cbaa8a21d8b89.zip
Compile ipcalc with _GNU_SOURCE defined (for asprintf).
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 5a6e171f..1cfb71ef 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -51,7 +51,7 @@ getkey: getkey.o
$(CC) $(LDFLAGS) -o $@ $< -Wl,-Bstatic -lpopt -Wl,-Bdynamic
ipcalc: ipcalc.o
- $(CC) $(LDFLAGS) -o $@ $< -Wl,-Bstatic -lpopt -Wl,-Bdynamic
+ $(CC) -D_GNU_SOURCE $(LDFLAGS) -o $@ $< -Wl,-Bstatic -lpopt -Wl,-Bdynamic
initlog: $(INITLOG_OBJS)
$(CC) $(LDFLAGS) -o $@ $(INITLOG_OBJS) -Wl,-Bstatic -lpopt -Wl,-Bdynamic