kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Fix some compiler errors & warnings caused & revealed by GLIBC 2.38 & GCC 13.
rodzic
013b72dbbf
commit
ab76204a40
4
utils.c
4
utils.c
|
@ -2211,9 +2211,7 @@ char * strtok_r_e(char *str, const char *delim, char **saveptr)
|
||||||
* plus the length of src. While this may seem somewhat confusing,
|
* plus the length of src. While this may seem somewhat confusing,
|
||||||
* it was done to make truncation detection simple."
|
* it was done to make truncation detection simple."
|
||||||
*/
|
*/
|
||||||
#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__HAIKU__) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 38)) || (__GLIBC__ >= 3)
|
#ifdef HAS_NO_STRLC
|
||||||
/* nothing here */
|
|
||||||
#else
|
|
||||||
int strlcpy(char *dst, const char *src, int sz)
|
int strlcpy(char *dst, const char *src, int sz)
|
||||||
{
|
{
|
||||||
int srclen;
|
int srclen;
|
||||||
|
|
1
utils.h
1
utils.h
|
@ -148,6 +148,7 @@ int t_lcm(int, int); /* returns least common multiple */
|
||||||
#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__HAIKU__) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 38)) || (__GLIBC__ >= 3)
|
#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__FreeBSD__) || defined(__HAIKU__) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 38)) || (__GLIBC__ >= 3)
|
||||||
/* nothing here */
|
/* nothing here */
|
||||||
#else
|
#else
|
||||||
|
#define HAS_NO_STRLC
|
||||||
int strlcpy(char *, const char *, int);
|
int strlcpy(char *, const char *, int);
|
||||||
int strlcat(char *, const char *, int);
|
int strlcat(char *, const char *, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue