diff options
| author | Daniel Kolesa | 2022-11-01 20:14:54 +0100 |
|---|---|---|
| committer | jvoisin | 2025-10-31 22:16:21 +0100 |
| commit | 8915dc13de44fed3a076a9fd51eb1ab2b5502d7b (patch) | |
| tree | c56a13e358ada44ed8048c0b78d8c2837ea9c27e /include/sys | |
| parent | 8dedaf5cadf154d2ab9abfccb3b80347b5e78e18 (diff) | |
avoid __extension__ with clang
It seems useless and triggers 'error: expected external declaration'
Diffstat (limited to 'include/sys')
| -rw-r--r-- | include/sys/select.h | 2 | ||||
| -rw-r--r-- | include/sys/socket.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/select.h b/include/sys/select.h index 1f19672..1a5afbe 100644 --- a/include/sys/select.h +++ b/include/sys/select.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #ifndef _FORTIFY_SYS_SELECT_H | 16 | #ifndef _FORTIFY_SYS_SELECT_H |
| 17 | #define _FORTIFY_SYS_SELECT_H | 17 | #define _FORTIFY_SYS_SELECT_H |
| 18 | 18 | ||
| 19 | #ifndef __cplusplus | 19 | #if !defined(__cplusplus) && !defined(__clang__) |
| 20 | __extension__ | 20 | __extension__ |
| 21 | #endif | 21 | #endif |
| 22 | #include_next <sys/select.h> | 22 | #include_next <sys/select.h> |
diff --git a/include/sys/socket.h b/include/sys/socket.h index 21a3cf1..604d65a 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #ifndef _FORTIFY_SYS_SOCKET_H | 16 | #ifndef _FORTIFY_SYS_SOCKET_H |
| 17 | #define _FORTIFY_SYS_SOCKET_H | 17 | #define _FORTIFY_SYS_SOCKET_H |
| 18 | 18 | ||
| 19 | #ifndef __cplusplus | 19 | #if !defined(__cplusplus) && !defined(__clang__) |
| 20 | __extension__ | 20 | __extension__ |
| 21 | #endif | 21 | #endif |
| 22 | #include_next <sys/socket.h> | 22 | #include_next <sys/socket.h> |
