biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / games / blobwars / blobwars-2.00-glibc-2.38.patch
blob4fe3e373afda602c5911ad6463a3d8a9d0970988
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
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