소스 검색

Include <sys/param.h> before <sys/swap.h> in order to fix compilation on
OpenBSD (nsturm - 1653934)


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1613 f882894a-f735-0410-b71e-b25c423dba1c

Holger Weiss 19 년 전
부모
커밋
c391272975
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      plugins/check_swap.c

+ 3 - 3
plugins/check_swap.c

@@ -42,15 +42,15 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
 #include "utils.h"
 
 #ifdef HAVE_DECL_SWAPCTL
+# ifdef HAVE_SYS_PARAM_H
+#  include <sys/param.h>
+# endif
 # ifdef HAVE_SYS_SWAP_H
 #  include <sys/swap.h>
 # endif
 # ifdef HAVE_SYS_STAT_H
 #  include <sys/stat.h>
 # endif
-# ifdef HAVE_SYS_PARAM_H
-#  include <sys/param.h>
-# endif
 #endif
 
 #ifndef SWAP_CONVERSION