Skip to content

Commit 27d8e66

Browse files
committed
keep include directives together
1 parent d011004 commit 27d8e66

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <io.h>
3636
#else
3737
#include <unistd.h>
38-
extern char **environ;
3938
#endif
4039

4140
#include <libxml/tree.h>
@@ -413,6 +412,10 @@ static inline int _xccdf_fix_decode_xml(struct xccdf_fix *fix, char **result)
413412
#if defined(unix) || defined(__unix__) || defined(__unix)
414413
static inline int _xccdf_fix_execute(struct xccdf_rule_result *rr, struct xccdf_fix *fix)
415414
{
415+
#ifndef OS_WINDOWS
416+
extern char **environ;
417+
#endif
418+
416419
if (rr == NULL) {
417420
return 1;
418421
}

0 commit comments

Comments
 (0)