… | |
… | |
26 | #include <random_map.h> |
26 | #include <random_map.h> |
27 | #include <dirent.h> |
27 | #include <dirent.h> |
28 | #include <sys/stat.h> |
28 | #include <sys/stat.h> |
29 | #include <unistd.h> |
29 | #include <unistd.h> |
30 | #include "../include/autoconf.h" |
30 | #include "../include/autoconf.h" |
|
|
31 | |
|
|
32 | // NAME_MAX may not be defined on POSIX systems |
|
|
33 | #ifndef NAME_MAX |
|
|
34 | # define NAME_MAX 255 |
|
|
35 | #endif |
31 | |
36 | |
32 | static int |
37 | static int |
33 | pointer_strcmp (const void *p1, const void *p2) |
38 | pointer_strcmp (const void *p1, const void *p2) |
34 | { |
39 | { |
35 | const char *s1 = *(const char **) p1; |
40 | const char *s1 = *(const char **) p1; |