[Lunar-commits] <moonbase> dhcp: fixed build error of socket.c

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Dec 5 13:20:52 CET 2009


commit 6cbff7fb0fb8c4e75c2ab3e80ee6f8afcc5585d7
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Dec 5 13:20:52 2009 +0100

    dhcp: fixed build error of socket.c
---
 net/dhcp/BUILD |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/dhcp/BUILD b/net/dhcp/BUILD
index 68bf09a..70d7b30 100644
--- a/net/dhcp/BUILD
+++ b/net/dhcp/BUILD
@@ -1,4 +1,5 @@
 (
+  CFLAGS+="-D_GNU_SOURCE"
   MODHOME="$MOONBASE/net/$MODULE"
   CFGHOME="/etc/config.d"
   OPTS+=" --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \
@@ -9,7 +10,7 @@
   default_build  &&
 
   #make sure the config directory exists
-  
+
   if [ ! -d $CFGHOME ]; then
      mkdir -p $CFGHOME
   fi  &&
@@ -17,14 +18,14 @@
   #copy the lunar config file into place
 
   if [ ! -e /etc/config.d/dhcpd ]; then
-     cp $MODHOME/dhcpd.config $CFGHOME/dhcpd                           
+     cp $MODHOME/dhcpd.config $CFGHOME/dhcpd
   else
      cp $MODHOME/dhcpd.config $CFGHOME/dhcpd.new
   fi  &&
 
 
   #make sure the leases file exists or we won't run
-  
+
   if [ ! -e /var/state/dhcp/dhcpd.leases ]; then
      mkdir -p /var/state/dhcp/
      touch /var/state/dhcp/dhcpd.leases


More information about the Lunar-commits mailing list