aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/Makefile.am2
-rw-r--r--util/Makefile.in2
-rw-r--r--util/secmem.c6
3 files changed, 6 insertions, 4 deletions
diff --git a/util/Makefile.am b/util/Makefile.am
index 8af2b148e..e8f920f84 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-INCLUDES = -I.. -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/include
noinst_LIBRARIES = libutil.a
diff --git a/util/Makefile.in b/util/Makefile.in
index 7b067bfdd..99ac0a5ab 100644
--- a/util/Makefile.in
+++ b/util/Makefile.in
@@ -86,7 +86,7 @@ POSUB = @POSUB@
RANLIB = @RANLIB@
VERSION = @VERSION@
-INCLUDES = -I.. -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/include
noinst_LIBRARIES = libutil.a
diff --git a/util/secmem.c b/util/secmem.c
index a08e24a6b..2777ca8ca 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -33,6 +33,7 @@
#include "types.h"
#include "memory.h"
#include "util.h"
+#include "i18n.h"
#define DEFAULT_POOLSIZE 8196
@@ -79,8 +80,9 @@ lock_pool( void *p, size_t n )
}
if( err ) {
- log_error("can�t lock memory: %s\n", strerror(err));
- log_info("Warning: using insecure memory!\n");
+ if( errno != EPERM )
+ log_error("can�t lock memory: %s\n", strerror(err));
+ log_info(_("Warning: using insecure memory!\n"));
}
#else