Browse Source

Fix #ifdef directives for access control. Thanks to bshneider for patch.

git-svn-id: https://klish.googlecode.com/svn/trunk@570 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 12 years ago
parent
commit
72ad74d1be
2 changed files with 10 additions and 0 deletions
  1. 5 0
      clish/callback_access.c
  2. 5 0
      lub/db.h

+ 5 - 0
clish/callback_access.c

@@ -11,6 +11,11 @@
 #include <sys/types.h>
 #include <assert.h>
 #include <string.h>
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #ifdef HAVE_GRP_H
 #include <grp.h>
 #endif

+ 5 - 0
lub/db.h

@@ -2,6 +2,11 @@
 #define _lub_passwd_h
 
 #include <stddef.h>
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #ifdef HAVE_PWD_H
 #include <pwd.h>
 #endif