diff options
author | pat <pat@FreeBSD.org> | 2002-01-29 20:32:39 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-01-29 20:32:39 +0000 |
commit | 6acca45aea9b4f14fc655721bf75ea9855656155 (patch) | |
tree | 4f6b61b3c30d9730132f0e5fda1852ffb664dab3 /x11-fm | |
parent | 443d664ccdd0c6a2a5a41b1adb519996a1709995 (diff) | |
download | FreeBSD-ports-6acca45aea9b4f14fc655721bf75ea9855656155.zip FreeBSD-ports-6acca45aea9b4f14fc655721bf75ea9855656155.tar.gz |
Fix conflict with strcasestr(3)
PR: 34413
Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>
Diffstat (limited to 'x11-fm')
-rw-r--r-- | x11-fm/endeavour/files/patch-endeavour::endeavour.h | 11 | ||||
-rw-r--r-- | x11-fm/endeavour/files/patch-endeavour::string.cpp | 28 | ||||
-rw-r--r-- | x11-fm/endeavour/files/patch-include::string.h | 12 |
3 files changed, 51 insertions, 0 deletions
diff --git a/x11-fm/endeavour/files/patch-endeavour::endeavour.h b/x11-fm/endeavour/files/patch-endeavour::endeavour.h new file mode 100644 index 0000000..3add579 --- /dev/null +++ b/x11-fm/endeavour/files/patch-endeavour::endeavour.h @@ -0,0 +1,11 @@ +--- endeavour/endeavour.h.orig Tue Jan 29 16:59:42 2002 ++++ endeavour/endeavour.h Tue Jan 29 17:01:10 2002 +@@ -1462,7 +1462,7 @@ + + + /* In timming.c */ +-extern long MilliTime(void); ++// extern long MilliTime(void); + + + /* In timmer.c */ diff --git a/x11-fm/endeavour/files/patch-endeavour::string.cpp b/x11-fm/endeavour/files/patch-endeavour::string.cpp new file mode 100644 index 0000000..d3a40a9 --- /dev/null +++ b/x11-fm/endeavour/files/patch-endeavour::string.cpp @@ -0,0 +1,28 @@ +--- endeavour/string.cpp.orig Tue Jan 29 17:05:25 2002 ++++ endeavour/string.cpp Tue Jan 29 17:11:26 2002 +@@ -35,7 +35,7 @@ + #endif /* __MSW__ */ + + const char *strseekblank(const char *s); +-const char *strcasestr(const char *haystack, const char *needle); ++// const char *strcasestr(const char *haystack, const char *needle); + int strpfx(const char *str, const char *pfx); + int strcasepfx(const char *str, const char *pfx); + void strtoupper(char *s); +@@ -219,6 +219,7 @@ + * Case insensitive version of strstr(). Returns the pointer to + * needle in haystack if found or NULL on no match. + */ ++#ifndef __FreeBSD__ + const char *strcasestr(const char *haystack, const char *needle) + { + const char *strptr1, *strptr2, *strptr3; +@@ -276,7 +277,7 @@ + + return(NULL); + } +- ++#endif + /* + * Returns 1 if pfx is a prefix of str. + * diff --git a/x11-fm/endeavour/files/patch-include::string.h b/x11-fm/endeavour/files/patch-include::string.h new file mode 100644 index 0000000..5a3899a --- /dev/null +++ b/x11-fm/endeavour/files/patch-include::string.h @@ -0,0 +1,12 @@ +--- include/string.h.orig Tue Jan 29 16:54:50 2002 ++++ include/string.h Tue Jan 29 16:55:21 2002 +@@ -24,7 +24,9 @@ + extern int strcasecmp(const char *s1, const char *s2); + #endif + extern const char *strseekblank(const char *s); ++#ifndef __FreeBSD__ + extern const char *strcasestr(const char *haystack, const char *needle); ++#endif + extern int strpfx(const char *str, const char *pfx); + extern int strcasepfx(const char *str, const char *pfx); + extern void strtoupper(char *s); |