1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
$NetBSD: patch-at,v 1.3 2013/09/08 16:28:27 joerg Exp $
--- bin/override.c.orig 2013-05-15 20:23:06.000000000 +0000
+++ bin/override.c
@@ -27,7 +27,7 @@
void vlc_enable_override (void);
-#if defined (__GNUC__) /* typeof and statement-expression */ \
+#if 0 && defined (__GNUC__) /* typeof and statement-expression */ \
&& (defined (__ELF__) && !defined (__sun__))
/* Solaris crashes on printf("%s", NULL); which is legal, but annoying. */
@@ -120,7 +120,7 @@ static void *getsym (const char *name)
*
* Some evil libraries modify the environment. We currently ignore the calls as
* they could crash the process. This may cause funny behaviour though. */
-int putenv (char *str)
+int putenv (const char *str)
{
if (override)
{
@@ -245,6 +245,7 @@ error:
*/
#include <locale.h>
+#if 0
char *setlocale (int cat, const char *locale)
{
if (override && locale != NULL)
@@ -254,6 +255,7 @@ char *setlocale (int cat, const char *lo
}
return CALL(setlocale, cat, locale);
}
+#endif
/*** Xlib ****/
|