]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Move generic includes outside of ifdef.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 12 Mar 2021 02:16:10 +0000 (13:16 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 12 Mar 2021 02:16:10 +0000 (13:16 +1100)
This ensures that the macros in log.h are defined in the case where
either of --with-solaris-projects or --with-solaris-privs are used
without --with-solaris-contracts.  bz#3278.

openbsd-compat/port-solaris.c

index 7d5a28cd0b12019f46bfcec12e0e4fc74e1e7591..b84fbff5e7f51ddda7a7b872c7fcce8063d789dd 100644 (file)
@@ -17,8 +17,6 @@
 #include "config.h"
 #include "includes.h"
 
-#ifdef USE_SOLARIS_PROCESS_CONTRACTS
-
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <string.h>
 #include <unistd.h>
 
+#include "log.h"
+
+#ifdef USE_SOLARIS_PROCESS_CONTRACTS
+
 #include <libcontract.h>
 #include <sys/contract/process.h>
 #include <sys/ctfs.h>
 
-#include "log.h"
-
 #define CT_TEMPLATE    CTFS_ROOT "/process/template"
 #define CT_LATEST      CTFS_ROOT "/process/latest"