]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/xgetXXbyYY.c: include stdint.h for SIZE_MAX
authorMike Gilbert <floppym@gentoo.org>
Sat, 13 Dec 2025 20:07:02 +0000 (15:07 -0500)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Sat, 13 Dec 2025 20:46:32 +0000 (21:46 +0100)
Fixes build failure:
```
In file included from xgetgrnam.c:40:
xgetXXbyYY.c: In function ‘xgetgrnam’:
xgetXXbyYY.c:83:31: error: ‘SIZE_MAX’ undeclared (first use in this function)
   83 |                 if (length == SIZE_MAX) {
      |                               ^~~~~~~~
```

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
lib/xgetXXbyYY.c

index 2c9dbda58d28960cf71358df429a26ea1b972875..589021207292fe9229ffcad7bb04919753bb3dfa 100644 (file)
@@ -29,6 +29,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <errno.h>
 
 #include "alloc/malloc.h"