Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-exfat: Commit

external/exfat


Commit MetaInfo

Revision0dfb0893ca92190f1480d20a134e8d61272d173c (tree)
Time2019-04-21 03:32:35
Authorrelan <relan@user...>
Commiterrelan

Log Message

Define proper feature test macros for glibc.

Change Summary

Incremental Difference

--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,7 @@ AC_PROG_CC_C99
3131 AC_PROG_RANLIB
3232 AM_PROG_AR
3333 AC_SYS_LARGEFILE
34+AC_CANONICAL_HOST
3435 PKG_CHECK_MODULES([UBLIO], [libublio], [
3536 CFLAGS="$CFLAGS $UBLIO_CFLAGS"
3637 LIBS="$LIBS $UBLIO_LIBS"
@@ -38,6 +39,12 @@ PKG_CHECK_MODULES([UBLIO], [libublio], [
3839 [Define if block devices are not supported.])
3940 ], [:])
4041 PKG_CHECK_MODULES([FUSE], [fuse])
42+case "$host_os" in
43+ *-gnu)
44+ AC_DEFINE([_XOPEN_SOURCE], [500], [Enable pread() and pwrite().])
45+ AC_DEFINE([_DEFAULT_SOURCE], [], [Enable vsyslog().])
46+ ;;
47+esac
4148 AC_CONFIG_HEADERS([libexfat/config.h])
4249 AC_CONFIG_FILES([
4350 libexfat/Makefile
Show on old repository browser