8756029f01
from LEVAI Daniel, with some tweaks by me ok william@ (MAINTAINER)
17 lines
413 B
Plaintext
17 lines
413 B
Plaintext
$OpenBSD: patch-examples_util_c,v 1.1 2010/12/21 18:16:04 jasper Exp $
|
|
|
|
Fix compilation with GCC2.
|
|
|
|
--- examples/util.c.orig Tue Dec 2 13:20:17 2008
|
|
+++ examples/util.c Tue Dec 21 14:02:11 2010
|
|
@@ -34,7 +34,8 @@
|
|
void checklang(void)
|
|
{
|
|
char *langsuff = NULL;
|
|
- char *lang = getenv("LANG");
|
|
+ char *lang;
|
|
+ lang = getenv("LANG");
|
|
|
|
#ifdef HAVE_LOCALE_H
|
|
// Set the locale in accordance with environment
|