summaryrefslogtreecommitdiff
path: root/libtac/include/libtac.h
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2012-09-16 20:25:57 +0200
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2012-09-16 20:25:57 +0200
commitb8bbb0e393e8a7bb62b91e7e64548de27276f9e0 (patch)
treea066a71de2aa92979cd6f3033856c6c25863a432 /libtac/include/libtac.h
parent1e3880cd56e43bd48e9fef111fa1bd6a0f4af059 (diff)
downloadpam_tacplus-b8bbb0e393e8a7bb62b91e7e64548de27276f9e0.tar.gz
pam_tacplus-b8bbb0e393e8a7bb62b91e7e64548de27276f9e0.zip
Rearrange header file include for libtac
Diffstat (limited to 'libtac/include/libtac.h')
-rw-r--r--libtac/include/libtac.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libtac/include/libtac.h b/libtac/include/libtac.h
index 5b85eac..6ede892 100644
--- a/libtac/include/libtac.h
+++ b/libtac/include/libtac.h
@@ -22,8 +22,6 @@
#ifndef _LIB_TAC_H
#define _LIB_TAC_H
-#include "tacplus.h"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -38,6 +36,13 @@ extern "C" {
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
+#include <sys/types.h>
+#ifdef __linux__
+#include <sys/cdefs.h>
+#else
+#include "cdefs.h"
+#endif
+#include "tacplus.h"
#if defined(DEBUGTAC) && !defined(TACDEBUG)
#define TACDEBUG(x) syslog x;