LOCK_UN definition in base/File.h require sys/file.h.
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
-#if HAVE_SYS_FILE_H
-#include <sys/file.h>
-#endif
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#include "sbuf/SBuf.h"
+#if HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif
+
/// How should a file be opened/created? Should it be locked?
class FileOpeningConfig
{
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
-#if HAVE_SYS_FILE_H
-#include <sys/file.h>
-#endif
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
+#if HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif
#define HERE "(security_file_certgen) " << __FILE__ << ':' << __LINE__ << ": "