openbsd-ports/devel/libmtp/patches/patch-examples_util_c
jasper 8756029f01 - update libmtp to 1.0.3
from LEVAI Daniel, with some tweaks by me
ok william@ (MAINTAINER)
2010-12-21 18:16:04 +00:00

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