diff options
Diffstat (limited to 'games/ember/files/patch-src-framework-prefix.cpp')
-rw-r--r-- | games/ember/files/patch-src-framework-prefix.cpp | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/games/ember/files/patch-src-framework-prefix.cpp b/games/ember/files/patch-src-framework-prefix.cpp new file mode 100644 index 000000000000..1d9500ea5cb1 --- /dev/null +++ b/games/ember/files/patch-src-framework-prefix.cpp @@ -0,0 +1,74 @@ +--- src/framework/prefix.cpp.orig Mon Oct 3 19:05:02 2005 ++++ src/framework/prefix.cpp Mon Oct 3 19:19:25 2005 +@@ -32,7 +32,7 @@ + + #ifndef BR_PTHREADS + /* Change 1 to 0 if you don't want pthread support */ +- #define BR_PTHREADS 1 ++ #define BR_PTHREADS 0 + #endif /* BR_PTHREADS */ + + #include <stdlib.h> +@@ -105,14 +105,14 @@ + FILE *f; + char *path; + +- br_return_val_if_fail (symbol != NULL, NULL); ++ br_return_val_if_fail (symbol != NULL, (char *)NULL); + + f = fopen ("/proc/self/maps", "r"); + if (!f) { + if (fallback_func) + return fallback_func(symbol, fallback_data); + else +- return NULL; ++ return (char *)NULL; + } + + while (!feof (f)) +@@ -151,7 +151,7 @@ + } + + fclose (f); +- return NULL; ++ return (char *)NULL; + } + + +@@ -173,10 +173,10 @@ + { + char *path, *prefix; + +- br_return_val_if_fail (symbol != NULL, NULL); ++ br_return_val_if_fail (symbol != NULL, (char *)NULL); + + path = br_locate (symbol); +- if (!path) return NULL; ++ if (!path) return (char *)NULL; + + prefix = br_extract_prefix (path); + free (path); +@@ -203,11 +203,11 @@ + { + char *tmp, *newpath; + +- br_return_val_if_fail (symbol != NULL, NULL); +- br_return_val_if_fail (path != NULL, NULL); ++ br_return_val_if_fail (symbol != NULL, (char *)NULL); ++ br_return_val_if_fail (path != NULL, (char *)NULL); + + tmp = br_locate_prefix (symbol); +- if (!tmp) return NULL; ++ if (!tmp) return (char *)NULL; + + if (strcmp (tmp, "/") == 0) + newpath = strdup (path); +@@ -215,7 +215,7 @@ + newpath = br_strcat (tmp, path); + + /* Get rid of compiler warning ("br_prepend_prefix never used") */ +- if (0) br_prepend_prefix (NULL, NULL); ++ if (0) br_prepend_prefix (NULL, (char *)NULL); + + free (tmp); + return newpath; |