mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build with gcc4
This commit is contained in:
parent
b4d1f5a386
commit
4aaedc83cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=192406
2 changed files with 28 additions and 3 deletions
|
@ -1,6 +1,14 @@
|
|||
--- eperl_proto.h.orig Thu Nov 21 21:26:44 2002
|
||||
+++ eperl_proto.h Thu Nov 21 21:26:50 2002
|
||||
@@ -79,7 +79,7 @@
|
||||
--- eperl_proto.h.orig Fri Jul 10 09:52:24 1998
|
||||
+++ eperl_proto.h Wed May 30 19:13:42 2007
|
||||
@@ -36,6 +36,7 @@
|
||||
#define EPERL_PROTO_H 1
|
||||
|
||||
/*_BEGIN_PROTO_*/
|
||||
+#include "eperl_getopt.h"
|
||||
|
||||
/* eperl_main.c */
|
||||
extern int mode;
|
||||
@@ -79,7 +80,7 @@
|
||||
extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
|
||||
extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
|
||||
extern char *strnchr(char *buf, char chr, int n);
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
--- components/broker/standard/glimpse/index/glimpse.c.orig Wed May 30 19:09:39 2007
|
||||
+++ components/broker/standard/glimpse/index/glimpse.c Wed May 30 19:11:06 2007
|
||||
@@ -18,12 +18,13 @@
|
||||
extern char INDEX_DIR[MAX_LINE_LEN];
|
||||
extern struct stat istbuf;
|
||||
|
||||
-extern char *TEMP_DIR; /* directory to store glimpse temporary files, usually /tmp unless -T is specified */
|
||||
#ifdef BUILDCAST
|
||||
/* TEMP_DIR is normally defined in ../main.c; if we're building
|
||||
* buildcast, that's not linked in, so we need to define one here. */
|
||||
/* char * TEMP_DIR = NULL; */
|
||||
static char * TEMP_DIR = "/tmp";
|
||||
+#else
|
||||
+extern char *TEMP_DIR; /* directory to store glimpse temporary files, usually /tmp unless -T is specified */
|
||||
#endif /* BUILDCAST */
|
||||
extern int indexable_char[256];
|
||||
extern int GenerateHash;
|
Loading…
Add table
Reference in a new issue