Merged stupid branches.
authorviric@llimona
Thu, 05 Apr 2007 19:19:09 +0200
changeset 91 0e8ef3d34b61
parent 90 26ce5a97d5d3 (current diff)
parent 88 bdd6018f66fd (diff)
child 92 05004c52ecff
Merged stupid branches.
--- a/Makefile	Wed Apr 04 00:31:54 2007 +0200
+++ b/Makefile	Thu Apr 05 19:19:09 2007 +0200
@@ -1,5 +1,5 @@
 PREFIX?=/usr/local
-GCCFLAGS=-D_XOPEN_SOURCE -D__STRICT_ANSI__
+GCCFLAGS=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D__STRICT_ANSI__
 CFLAGS=-pedantic -ansi -Wall -g -O0 ${GCCFLAGS}
 OBJECTS=main.o \
 	server.o \
@@ -13,6 +13,8 @@
 	mail.o
 INSTALL=/usr/bin/install -c
 
+all: ts
+
 ts: $(OBJECTS)
 	gcc -o ts $^
 
--- a/main.c	Wed Apr 04 00:31:54 2007 +0200
+++ b/main.c	Thu Apr 05 19:19:09 2007 +0200
@@ -316,8 +316,10 @@
 static void unset_getopt_env()
 {
     if (old_getopt_env == NULL)
+    {
         /* Wipe the string from the environment */
-        strcpy(getopt_env, "POSIXLY_CORRECT");
+        putenv("POSIXLY_CORRECT");
+    }
     else
         sprintf(getopt_env, "POSIXLY_CORRECT=%s", old_getopt_env);
 }