]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Changes to account for the reduced included gnulib
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:23:03 +0000 (12:23 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 4 Mar 2014 11:23:03 +0000 (12:23 +0100)
lib/fips.c
lib/system.c

index f0848b50a443943446724cdeb25afa5ec51d03c8..4b383d274ad952ed9b1532602b63129de0581567 100644 (file)
 #include <fips.h>
 #include <stdio.h>
 #include <random.h>
-#include <dlfcn.h>
 
 unsigned int _gnutls_lib_mode = LIB_STATE_POWERON;
 #ifdef ENABLE_FIPS140
 
+#include <dlfcn.h>
+
 #define FIPS_KERNEL_FILE "/proc/sys/crypto/fips_enabled"
 #define FIPS_SYSTEM_FILE "/etc/system-fips"
 
index 4aacb32d08192d8956054edc2fae52be939db584..31a9aab15660798cb6d74fbe36801499a0535206 100644 (file)
 #include <gnutls_errors.h>
 
 #include <sys/socket.h>
-#include <sys/select.h>
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <c-ctype.h>
 
 #ifdef _WIN32
-#include <windows.h>
-#include <wincrypt.h>
-#if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
+# include <windows.h>
+# include <wincrypt.h>
+# if defined(__MINGW32__) && !defined(__MINGW64__) && __MINGW32_MAJOR_VERSION <= 3 && __MINGW32_MINOR_VERSION <= 20
 typedef PCCRL_CONTEXT WINAPI(*Type_CertEnumCRLsInStore) (HCERTSTORE
                                                         hCertStore,
                                                         PCCRL_CONTEXT
                                                         pPrevCrlContext);
 static Type_CertEnumCRLsInStore Loaded_CertEnumCRLsInStore;
 static HMODULE Crypt32_dll;
-#else
-#define Loaded_CertEnumCRLsInStore CertEnumCRLsInStore
-#endif
-#else
-#ifdef HAVE_PTHREAD_LOCKS
-#include <pthread.h>
-#endif
+# else
+#  define Loaded_CertEnumCRLsInStore CertEnumCRLsInStore
+# endif
 
-#if defined(HAVE_GETPWUID_R)
-#include <pwd.h>
-#endif
+#else /* _WIN32 */
+# include <sys/select.h>
+
+# ifdef HAVE_PTHREAD_LOCKS
+#  include <pthread.h>
+# endif
+
+# if defined(HAVE_GETPWUID_R)
+#  include <pwd.h>
+# endif
 #endif
 
 /* System specific function wrappers.