nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 11 lines 604 B view raw
1--- a/src/headers.h 2+++ b/src/headers.h 3@@ -56,7 +56,7 @@ extern DECLSPEC int SDLCALL SDL_GetGamma(float *red, float *green, float *blue); 4 #define textdomain(x) while(false) 5 #endif 6 7-#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__) 8+#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__) && !(defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 38) 9 static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); } 10 static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; } 11 #endif