commit 5f4098325a1b0d21f2836abcc999519333619665 from: Thomas Adam date: Mon Jun 24 22:00:55 2024 UTC portable: move __bounded__ check Not all systems (NetBSD) define __bounded__. commit - 3f1103ea8d6aba2aad6eee95d8a0009bd24bd337 commit + 5f4098325a1b0d21f2836abcc999519333619665 blob - 4f49551e0418842e90e9b42932b7a4afc9426fc1 blob + 9b43f45d81e67b426c4d45a1007ee71d8ac773ce --- include/got_compat2.h +++ include/got_compat2.h @@ -63,10 +63,7 @@ #ifndef __GNUC__ #define __attribute__(a) -#ifndef __bounded__ -#define __bounded__(a, b, c) #endif -#endif #ifndef UID_MAX @@ -110,6 +107,10 @@ #define __unused __attribute__ ((__unused__)) #endif +#ifndef __bounded__ +#define __bounded__(a, b, c) +#endif + #ifndef __OpenBSD__ #define pledge(s, p) (0) #define unveil(s, p) (0)