summaryrefslogtreecommitdiff
path: root/src/libopts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-22 19:59:12 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-03-22 19:59:12 +0100
commit6b3d7b6e31ddab337e185922910262d68f1fc6fa (patch)
tree3eeec467b39d189ea522cc3177f797d0999f9e88 /src/libopts
parent722472e266c5353887304aeb21ed1d89291d08d0 (diff)
downloadgnutls-6b3d7b6e31ddab337e185922910262d68f1fc6fa.tar.gz
use header files from gl/ and include gettext.h
Diffstat (limited to 'src/libopts')
-rw-r--r--src/libopts/Makefile.am2
-rw-r--r--src/libopts/genshell.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libopts/Makefile.am b/src/libopts/Makefile.am
index 33977a8e58..2986ac15d6 100644
--- a/src/libopts/Makefile.am
+++ b/src/libopts/Makefile.am
@@ -6,7 +6,7 @@ else
noinst_LTLIBRARIES = libopts.la
endif
libopts_la_SOURCES = libopts.c
-libopts_la_CPPFLAGS = -I$(top_srcdir)
+libopts_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/gl
libopts_la_LDFLAGS = -version-info 36:3:11
EXTRA_DIST = \
ag-char-map.h alias.c ao-strs.c \
diff --git a/src/libopts/genshell.h b/src/libopts/genshell.h
index 4c90c9dad0..f40900f391 100644
--- a/src/libopts/genshell.h
+++ b/src/libopts/genshell.h
@@ -141,6 +141,7 @@ extern tOptions genshelloptOptions;
#if defined(ENABLE_NLS)
# ifndef _
# include <stdio.h>
+# include <gettext.h>
static inline char* aoGetsText(char const* pz) {
if (pz == NULL) return NULL;
return (char*)gettext(pz);