47 lines
1016 B
Diff
47 lines
1016 B
Diff
|
|
From 22ae88868f48090e2a5ad4b9bb165581df91511f Mon Sep 17 00:00:00 2001
|
||
|
|
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
|
||
|
|
Date: Sun, 24 Nov 2019 17:22:49 +0100
|
||
|
|
Subject: [PATCH] Fix incorrect include of fcntl.h
|
||
|
|
|
||
|
|
---
|
||
|
|
configure.ac | 1 -
|
||
|
|
src/cron.c | 5 +----
|
||
|
|
2 files changed, 1 insertion(+), 5 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/configure.ac b/configure.ac
|
||
|
|
index bffe9ad..5493261 100644
|
||
|
|
--- a/configure.ac
|
||
|
|
+++ b/configure.ac
|
||
|
|
@@ -38,7 +38,6 @@ AC_CHECK_HEADERS( \
|
||
|
|
sys/timers.h \
|
||
|
|
sys/types.h \
|
||
|
|
sys/cdefs.h \
|
||
|
|
- sys/fcntl.h \
|
||
|
|
time.h \
|
||
|
|
unistd.h \
|
||
|
|
util.h \
|
||
|
|
diff --git a/src/cron.c b/src/cron.c
|
||
|
|
index 7eabfe9..40e1e76 100644
|
||
|
|
--- a/src/cron.c
|
||
|
|
+++ b/src/cron.c
|
||
|
|
@@ -40,15 +40,12 @@
|
||
|
|
#include <sys/wait.h>
|
||
|
|
#include <unistd.h>
|
||
|
|
#include <sys/time.h>
|
||
|
|
+#include <fcntl.h>
|
||
|
|
|
||
|
|
#ifdef WITH_INOTIFY
|
||
|
|
# include <sys/inotify.h>
|
||
|
|
#endif
|
||
|
|
|
||
|
|
-#ifdef HAVE_SYS_FCNTL_H
|
||
|
|
-# include <sys/fcntl.h>
|
||
|
|
-#endif
|
||
|
|
-
|
||
|
|
#include "cronie_common.h"
|
||
|
|
#include "funcs.h"
|
||
|
|
#include "globals.h"
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|