← Commit list

f97aa8d7ed

Viktor Szakats
Viktor Szakats
2025-09-30
FAILED Duration: 170s

Subject

tidy-up: `fcntl.h` includes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/cf-ip-happy.c+0 -3
@@ -41,9 +41,6 @@
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
lib/cf-socket.c+0 -3
@@ -44,9 +44,6 @@
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
lib/connect.c+0 -3
@@ -41,9 +41,6 @@
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
lib/curlx/fopen.h+4 -3
@@ -28,6 +28,10 @@
#include "multibyte.h"
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h> /* for open() and attributes */
+#endif
+
#if defined(_WIN32) && !defined(UNDER_CE)
FILE *curlx_win32_fopen(const char *filename, const char *mode);
int curlx_win32_stat(const char *path, struct_stat *buffer);
@@ -36,9 +40,6 @@ int curlx_win32_open(const char *filename, int oflag, ...);
#define curlx_stat(fname, stp) curlx_win32_stat(fname, stp)
#define curlx_open curlx_win32_open
#else
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h> /* for open() */
-#endif
#define CURLX_FOPEN_LOW fopen
#define curlx_stat(fname, stp) stat(fname, stp)
#define curlx_open open
lib/rand.c+0 -3
@@ -26,9 +26,6 @@
#include <limits.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
lib/vtls/vtls.c+0 -3
@@ -43,9 +43,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#include "../urldata.h"
#include "../cfilters.h"
lib/vtls/vtls_scache.c+0 -3
@@ -29,9 +29,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#include "../urldata.h"
#include "../cfilters.h"