diff options
Diffstat (limited to 'games/torcs/files/patch-src::libs::tgfclient::screen.cpp')
-rw-r--r-- | games/torcs/files/patch-src::libs::tgfclient::screen.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/games/torcs/files/patch-src::libs::tgfclient::screen.cpp b/games/torcs/files/patch-src::libs::tgfclient::screen.cpp deleted file mode 100644 index c49df58b37f2..000000000000 --- a/games/torcs/files/patch-src::libs::tgfclient::screen.cpp +++ /dev/null @@ -1,22 +0,0 @@ ---- ./src/libs/tgfclient/screen.cpp.orig Fri Feb 4 23:29:59 2005 -+++ ./src/libs/tgfclient/screen.cpp Mon Feb 28 19:21:11 2005 -@@ -52,6 +52,19 @@ - #include <X11/extensions/Xrandr.h> - #endif // USE_RANDR_EXT - -+#if defined(__FreeBSD__) -+static char *strndup(const char *str, int len) { -+ char *ret; -+ -+ if ((str == NULL || len < 0)) return(NULL); -+ ret = (char *)malloc(len + 1); -+ if (ret == NULL) return(NULL); -+ memcpy(ret, str, len); -+ ret[len] = '\0'; -+ return(ret); -+} -+#endif -+ - static int GfScrWidth; - static int GfScrHeight; - static int GfViewWidth; |