[gopher] gopher patches for FreeBSD
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi there,
I had to apply the following patches to make gopher 3.0.2 compile on FreeBSD.
Kris
find . -name '*.[ch]' | xargs perl -pi -e 's,<malloc.h>,<stdlib.h>,'
--- ./object/util.h.orig Fri Aug 18 17:28:56 2000
+++ ./object/util.h Sat Jan 26 02:16:25 2002
@@ -57,7 +57,6 @@
void Fromhexstr(char * , char *);
void Tohexstr(char *input, char *output);
void Hexall(char *input, char *output);
-char *strcasestr(char *inputline, char *match);
char *skip_whitespace(char *);
/*
--- ./object/util.c.orig Tue Dec 19 17:19:20 2000
+++ ./object/util.c Sat Jan 26 02:16:51 2002
@@ -584,28 +584,6 @@
/*
- * String insensitive strstr
- */
-
-char *
-strcasestr(char *inputline, char *match)
-{
- int matchlen=0;
- int i, inlen;
-
- matchlen = strlen(match);
- inlen = strlen(inputline);
-
- for(i=0; i<inlen; i++) {
- if (strncasecmp(inputline+i, match, matchlen)==0)
- return(inputline+i);
- }
-
- return(NULL);
-}
-
-
-/*
* Iterate over a string, return a pointer to the next character
* that isn't whitespace.
*/
--- Makefile.in.orig Sat Jan 26 03:10:15 2002
+++ Makefile.in Sat Jan 26 03:10:23 2002
@@ -140,7 +140,7 @@
objects: object/libgopher.a
gopherd/gopherd: object/libgopher.a $(srcdir)/gopherd/*.c
$(srcdir)/gopherd/*.h $(srcdir)/conf.h
- (cd gopherd; $(MAKE) $(MFLAGS))
+ (cd gopherd; $(MAKE) $(MFLAGS) all)
# gopher is dependant on conf.h - (as are other things)
gopher/gopher: object/libgopher.a conf.h $(srcdir)/gopher/*c
$(srcdir)/gopher/*h
-- Attached file included as plaintext by Listar --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8UpVDWry0BWjoQKURApz7AKDbqf6yoPfLVzKQF/u2UqgltwvxTwCeOjJw
ZtQptJbv89VLyzHASh8eOZo=
=fdtb
-----END PGP SIGNATURE-----
- [gopher] gopher patches for FreeBSD,
Kris Kennaway <=
|
|