summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorEmily Trau <me@angus.ws>2022-08-16 01:57:43 +1000
committerLinus Groh <mail@linusgroh.de>2022-08-23 19:07:12 +0100
commitabc150085f532f123b598949218893cb272ccc4c (patch)
tree9bb772430049af6ca4db5b5b53a2b0ff583f9e30 /Userland/Libraries
parente70624de9fe6124b774784576875249641777bd8 (diff)
downloadserenity-abc150085f532f123b598949218893cb272ccc4c.zip
LibC: Add missing sys/cdefs.h include
Some header files use __BEGIN_DECLS without including sys/cdefs.h. This causes issues for C code that compiles against these headers, which may occur with Ports.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/complex.h1
-rw-r--r--Userland/Libraries/LibC/dirent.h1
-rw-r--r--Userland/Libraries/LibC/fcntl.h1
-rw-r--r--Userland/Libraries/LibC/fnmatch.h1
-rw-r--r--Userland/Libraries/LibC/glob.h1
-rw-r--r--Userland/Libraries/LibC/net/if.h1
-rw-r--r--Userland/Libraries/LibC/netinet/in.h1
-rw-r--r--Userland/Libraries/LibC/poll.h1
-rw-r--r--Userland/Libraries/LibC/regex.h1
-rw-r--r--Userland/Libraries/LibC/resolv.h1
-rw-r--r--Userland/Libraries/LibC/serenity.h1
-rw-r--r--Userland/Libraries/LibC/signal.h1
-rw-r--r--Userland/Libraries/LibC/stdio_ext.h1
-rw-r--r--Userland/Libraries/LibC/sys/mman.h1
-rw-r--r--Userland/Libraries/LibC/sys/ptrace.h1
-rw-r--r--Userland/Libraries/LibC/sys/socket.h1
-rw-r--r--Userland/Libraries/LibC/sys/statvfs.h1
-rw-r--r--Userland/Libraries/LibC/sys/time.h1
-rw-r--r--Userland/Libraries/LibC/sys/times.h1
-rw-r--r--Userland/Libraries/LibC/sys/uio.h1
-rw-r--r--Userland/Libraries/LibC/sys/utsname.h1
-rw-r--r--Userland/Libraries/LibC/sys/wait.h1
-rw-r--r--Userland/Libraries/LibC/sys/xattr.h1
-rw-r--r--Userland/Libraries/LibC/termios.h1
-rw-r--r--Userland/Libraries/LibC/time.h1
-rw-r--r--Userland/Libraries/LibC/unistd.h1
-rw-r--r--Userland/Libraries/LibC/wctype.h1
27 files changed, 27 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/complex.h b/Userland/Libraries/LibC/complex.h
index a3b718e1f4..9731d22edf 100644
--- a/Userland/Libraries/LibC/complex.h
+++ b/Userland/Libraries/LibC/complex.h
@@ -12,6 +12,7 @@
#pragma once
#include <stddef.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/dirent.h b/Userland/Libraries/LibC/dirent.h
index 1d132a3db1..8f813b35ba 100644
--- a/Userland/Libraries/LibC/dirent.h
+++ b/Userland/Libraries/LibC/dirent.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/dirent.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/fcntl.h b/Userland/Libraries/LibC/fcntl.h
index bf640c79f5..73fa5ec9c9 100644
--- a/Userland/Libraries/LibC/fcntl.h
+++ b/Userland/Libraries/LibC/fcntl.h
@@ -9,6 +9,7 @@
#include <Kernel/API/POSIX/fcntl.h>
#include <Kernel/API/POSIX/sys/stat.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/fnmatch.h b/Userland/Libraries/LibC/fnmatch.h
index 3aa398b472..1808e7b4b5 100644
--- a/Userland/Libraries/LibC/fnmatch.h
+++ b/Userland/Libraries/LibC/fnmatch.h
@@ -6,6 +6,7 @@
#pragma once
+#include <sys/cdefs.h>
#include <sys/types.h>
#define FNM_NOMATCH 1
diff --git a/Userland/Libraries/LibC/glob.h b/Userland/Libraries/LibC/glob.h
index ed7a545fe4..3a6cd6c52f 100644
--- a/Userland/Libraries/LibC/glob.h
+++ b/Userland/Libraries/LibC/glob.h
@@ -6,6 +6,7 @@
#pragma once
+#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/net/if.h b/Userland/Libraries/LibC/net/if.h
index d96333a013..560d5e3bd4 100644
--- a/Userland/Libraries/LibC/net/if.h
+++ b/Userland/Libraries/LibC/net/if.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/net/if.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/netinet/in.h b/Userland/Libraries/LibC/netinet/in.h
index 58391c18a5..3f6513d9b5 100644
--- a/Userland/Libraries/LibC/netinet/in.h
+++ b/Userland/Libraries/LibC/netinet/in.h
@@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/netinet/in.h>
#include <endian.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/poll.h b/Userland/Libraries/LibC/poll.h
index 7667468442..3a0aa551ad 100644
--- a/Userland/Libraries/LibC/poll.h
+++ b/Userland/Libraries/LibC/poll.h
@@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/poll.h>
#include <signal.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/regex.h b/Userland/Libraries/LibC/regex.h
index a850a43ae8..18eea479a5 100644
--- a/Userland/Libraries/LibC/regex.h
+++ b/Userland/Libraries/LibC/regex.h
@@ -7,6 +7,7 @@
#pragma once
#include <stddef.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/resolv.h b/Userland/Libraries/LibC/resolv.h
index ff0a7f3447..23f4ece30a 100644
--- a/Userland/Libraries/LibC/resolv.h
+++ b/Userland/Libraries/LibC/resolv.h
@@ -6,6 +6,7 @@
#pragma once
+#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/serenity.h b/Userland/Libraries/LibC/serenity.h
index 35cb299e67..97735d7d4f 100644
--- a/Userland/Libraries/LibC/serenity.h
+++ b/Userland/Libraries/LibC/serenity.h
@@ -9,6 +9,7 @@
#include <Kernel/API/POSIX/futex.h>
#include <Kernel/API/POSIX/serenity.h>
#include <stdio.h>
+#include <sys/cdefs.h>
#include <time.h>
#include <unistd.h>
diff --git a/Userland/Libraries/LibC/signal.h b/Userland/Libraries/LibC/signal.h
index 2431e052db..87012a41a3 100644
--- a/Userland/Libraries/LibC/signal.h
+++ b/Userland/Libraries/LibC/signal.h
@@ -10,6 +10,7 @@
#include <Kernel/API/POSIX/ucontext.h>
#include <bits/sighow.h>
#include <signal_numbers.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/stdio_ext.h b/Userland/Libraries/LibC/stdio_ext.h
index b03b3dbec4..57004b611b 100644
--- a/Userland/Libraries/LibC/stdio_ext.h
+++ b/Userland/Libraries/LibC/stdio_ext.h
@@ -7,6 +7,7 @@
#pragma once
#include <stdio.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/mman.h b/Userland/Libraries/LibC/sys/mman.h
index d5d5ed2b44..c3aaf1302d 100644
--- a/Userland/Libraries/LibC/sys/mman.h
+++ b/Userland/Libraries/LibC/sys/mman.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/mman.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/ptrace.h b/Userland/Libraries/LibC/sys/ptrace.h
index b2549e1c2b..a240fbb6ad 100644
--- a/Userland/Libraries/LibC/sys/ptrace.h
+++ b/Userland/Libraries/LibC/sys/ptrace.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/ptrace.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/socket.h b/Userland/Libraries/LibC/sys/socket.h
index f37be8e7ae..158ec12303 100644
--- a/Userland/Libraries/LibC/sys/socket.h
+++ b/Userland/Libraries/LibC/sys/socket.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/socket.h>
+#include <sys/cdefs.h>
#include <sys/un.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/statvfs.h b/Userland/Libraries/LibC/sys/statvfs.h
index 0530b60d80..f697c5e6b8 100644
--- a/Userland/Libraries/LibC/sys/statvfs.h
+++ b/Userland/Libraries/LibC/sys/statvfs.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/statvfs.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/time.h b/Userland/Libraries/LibC/sys/time.h
index 8dc88f672a..59e2329b81 100644
--- a/Userland/Libraries/LibC/sys/time.h
+++ b/Userland/Libraries/LibC/sys/time.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/time.h>
+#include <sys/cdefs.h>
#include <time.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/times.h b/Userland/Libraries/LibC/sys/times.h
index 50ef1a2938..066f159090 100644
--- a/Userland/Libraries/LibC/sys/times.h
+++ b/Userland/Libraries/LibC/sys/times.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/times.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/uio.h b/Userland/Libraries/LibC/sys/uio.h
index cdccba1e80..2ef020f9d7 100644
--- a/Userland/Libraries/LibC/sys/uio.h
+++ b/Userland/Libraries/LibC/sys/uio.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/uio.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/utsname.h b/Userland/Libraries/LibC/sys/utsname.h
index e5cd49b835..9ec62e925c 100644
--- a/Userland/Libraries/LibC/sys/utsname.h
+++ b/Userland/Libraries/LibC/sys/utsname.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/utsname.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/wait.h b/Userland/Libraries/LibC/sys/wait.h
index 2091fc3fa3..a5292f9ffe 100644
--- a/Userland/Libraries/LibC/sys/wait.h
+++ b/Userland/Libraries/LibC/sys/wait.h
@@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/sys/wait.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/sys/xattr.h b/Userland/Libraries/LibC/sys/xattr.h
index 0da4ead659..8efcaab334 100644
--- a/Userland/Libraries/LibC/sys/xattr.h
+++ b/Userland/Libraries/LibC/sys/xattr.h
@@ -6,6 +6,7 @@
#pragma once
+#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/termios.h b/Userland/Libraries/LibC/termios.h
index 3a2382c7b9..a8c4bc4056 100644
--- a/Userland/Libraries/LibC/termios.h
+++ b/Userland/Libraries/LibC/termios.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/termios.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/time.h b/Userland/Libraries/LibC/time.h
index caf8d9d6e5..dec5d75719 100644
--- a/Userland/Libraries/LibC/time.h
+++ b/Userland/Libraries/LibC/time.h
@@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/time.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/unistd.h b/Userland/Libraries/LibC/unistd.h
index cf3c2896fd..ee4bf2f1ae 100644
--- a/Userland/Libraries/LibC/unistd.h
+++ b/Userland/Libraries/LibC/unistd.h
@@ -16,6 +16,7 @@
#include <Kernel/API/POSIX/unistd.h>
#include <fd_set.h>
#include <limits.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/Userland/Libraries/LibC/wctype.h b/Userland/Libraries/LibC/wctype.h
index 6f08a0b04b..514371c163 100644
--- a/Userland/Libraries/LibC/wctype.h
+++ b/Userland/Libraries/LibC/wctype.h
@@ -8,6 +8,7 @@
#include <assert.h>
#include <ctype.h>
+#include <sys/cdefs.h>
#include <wchar.h>
__BEGIN_DECLS