From 22f8cc4e6c149ceb272ecad2caea9f33ec86dfaa Mon Sep 17 00:00:00 2001 From: Samuel Varley Date: Tue, 24 Nov 2015 16:25:13 +1300 Subject: Ensure config.h is included first. pam_radius_auth.c was including config.h via pam_radius_auth.h but only after other library header files had been included. This meant you could have _GNU_SOURCE, for example, defined in config.h but it did not have any effect on which library functions were provided. --- src/pam_radius_auth.c | 4 ---- src/pam_radius_auth.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 90d074a..d184e1a 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -55,10 +55,6 @@ #define PAM_SM_PASSWORD #define PAM_SM_SESSION -#include -#include -#include - #include "pam_radius_auth.h" #define DPRINT if (opt_debug & PAM_DEBUG_ARG) _pam_log diff --git a/src/pam_radius_auth.h b/src/pam_radius_auth.h index 95f262c..defec5c 100644 --- a/src/pam_radius_auth.h +++ b/src/pam_radius_auth.h @@ -3,6 +3,9 @@ #include "config.h" +#include +#include +#include #include #include #include -- cgit v1.2.3