mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-05 23:01:40 +03:00
Update posix source version on monkey frontend to reflect oyr usage of scandir
This commit is contained in:
parent
f6dde27dd2
commit
408e818cbe
@ -35,7 +35,7 @@ CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
|
|||||||
-D_BSD_SOURCE \
|
-D_BSD_SOURCE \
|
||||||
-D_DEFAULT_SOURCE \
|
-D_DEFAULT_SOURCE \
|
||||||
-D_XOPEN_SOURCE=600 \
|
-D_XOPEN_SOURCE=600 \
|
||||||
-D_POSIX_C_SOURCE=200112L \
|
-D_POSIX_C_SOURCE=200809L \
|
||||||
-D_NETBSD_SOURCE \
|
-D_NETBSD_SOURCE \
|
||||||
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\" \
|
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\" \
|
||||||
$(shell $(PKG_CONFIG) --cflags glib-2.0) \
|
$(shell $(PKG_CONFIG) --cflags glib-2.0) \
|
||||||
|
@ -356,7 +356,7 @@ char *strndup(const char *s, size_t n)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Exported interface, documented in utils.c */
|
/* Exported interface, documented in utils.h */
|
||||||
int dir_sort_alpha(const struct dirent **d1, const struct dirent **d2)
|
int dir_sort_alpha(const struct dirent **d1, const struct dirent **d2)
|
||||||
{
|
{
|
||||||
const char *s1 = (*d1)->d_name;
|
const char *s1 = (*d1)->d_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user