openbsd-ports/misc/splitvt/patches/patch-config_c
naddy 121408a09b - update to 1.6.5
- fix LP64 problems; fixes amd64 crash reported by Marcos Latas
2005-10-31 20:27:14 +00:00

29 lines
674 B
Plaintext

$OpenBSD: patch-config_c,v 1.2 2005/10/31 20:27:14 naddy Exp $
--- config.c.orig Sat May 3 22:48:04 2003
+++ config.c Mon Oct 31 20:53:56 2005
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <sys/stat.h>
#include <signal.h>
+#include <stdlib.h>
/*#define DEBUG /* Provides extra debugging info */
@@ -64,6 +65,7 @@ char *argv[];
#else
cflags[0]='\0';
#endif
+ strcpy(cflags,getenv("CFLAGS"));
ldflags[0]='\0';
#define INCLUDE "/usr/include/"
@@ -90,8 +92,6 @@ char *argv[];
solaris=1;
VERBOSE_PRINT("\tI see you are running Solaris.\n");
}
- else
- strcat(cflags, " -O");
/* Check for IRIX */
if ( grep("/usr/include", "unistd.h", "_getpty") )