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.
This commit is contained in:
Emily Trau 2022-08-16 01:57:43 +10:00 committed by Linus Groh
parent e70624de9f
commit abc150085f
Notes: sideshowbarker 2024-07-17 20:33:50 +09:00
27 changed files with 27 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#pragma once
#include <stddef.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/dirent.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -9,6 +9,7 @@
#include <Kernel/API/POSIX/fcntl.h>
#include <Kernel/API/POSIX/sys/stat.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -6,6 +6,7 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
#define FNM_NOMATCH 1

View file

@ -6,6 +6,7 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/net/if.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/netinet/in.h>
#include <endian.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/poll.h>
#include <signal.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <stddef.h>
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS

View file

@ -6,6 +6,7 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS

View file

@ -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>

View file

@ -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

View file

@ -7,6 +7,7 @@
#pragma once
#include <stdio.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/mman.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/ptrace.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/socket.h>
#include <sys/cdefs.h>
#include <sys/un.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/statvfs.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/time.h>
#include <sys/cdefs.h>
#include <time.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/times.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/uio.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/sys/utsname.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -8,6 +8,7 @@
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/sys/wait.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -6,6 +6,7 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/termios.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -7,6 +7,7 @@
#pragma once
#include <Kernel/API/POSIX/time.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -16,6 +16,7 @@
#include <Kernel/API/POSIX/unistd.h>
#include <fd_set.h>
#include <limits.h>
#include <sys/cdefs.h>
__BEGIN_DECLS

View file

@ -8,6 +8,7 @@
#include <assert.h>
#include <ctype.h>
#include <sys/cdefs.h>
#include <wchar.h>
__BEGIN_DECLS