openbsd-ports/security/gnutls/patches/patch-src_libopts_genshell_h
2012-09-20 17:49:10 +00:00

15 lines
517 B
Plaintext

$OpenBSD: patch-src_libopts_genshell_h,v 1.1 2012/09/20 17:49:10 ajacoutot Exp $
genshell.h:147: warning: implicit declaration of function 'gettext'
--- src/libopts/genshell.h.orig Thu Sep 20 19:26:23 2012
+++ src/libopts/genshell.h Thu Sep 20 19:26:44 2012
@@ -142,6 +142,7 @@ extern tOptions genshelloptOptions;
#if defined(ENABLE_NLS)
# ifndef _
# include <stdio.h>
+# include <libintl.h>
static inline char* aoGetsText(char const* pz) {
if (pz == NULL) return NULL;
return (char*)gettext(pz);