Respect CC and CXX, and don't depend on obsoleted header <values.h>

for a definition of BITSPERBYTE
This commit is contained in:
Kris Kennaway 2002-09-05 02:49:33 +00:00
parent 6c4d4e53e8
commit c5786aa3cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65637
2 changed files with 32 additions and 2 deletions

View File

@ -1,5 +1,16 @@
--- Makefile.orig Mon Apr 19 12:38:56 1999
+++ Makefile Sat May 27 14:51:57 2000
--- Makefile.orig Mon Apr 19 10:38:56 1999
+++ Makefile Wed Sep 4 19:46:45 2002
@@ -10,8 +10,8 @@
# Default compilers and linker
-CC = gcc
-CXX = g++
+CC ?= cc
+CXX ?= c++
LD = $(CXX)
# OS-dependent definitions (choose one and adjust, if necessary)
@@ -99,21 +99,21 @@
## for Linux (glibc2/libc 6):

19
www/fhttpd/files/patch-ai Normal file
View File

@ -0,0 +1,19 @@
--- pseudopoll.c.orig Wed Sep 4 19:45:04 2002
+++ pseudopoll.c Wed Sep 4 19:45:19 2002
@@ -7,7 +7,6 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
-#include <values.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/poll.h>
@@ -15,6 +14,8 @@
#ifdef NEED_SELECT_H
#include <sys/select.h>
#endif
+
+#define BITSPERBYTE 8
static char *readfds_c=NULL;
static char *writefds_c=NULL;