define _REENTRANT in configure instead of in Makefile.am (Alon Bar-Lev)

master
szaka 2008-01-23 21:23:55 +00:00
parent 5e6d439ce8
commit 9c92941a6f
2 changed files with 5 additions and 1 deletions

View File

@ -185,6 +185,11 @@ if test "${with_fuse}" = "internal"; then
[LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lrt"],
[AC_MSG_ERROR([Cannot find rt library])]
)
AC_DEFINE(
[_REENTRANT],
[1],
[Required define if using POSIX threads]
)
# required so that we re-compile anything
AC_DEFINE(
[FUSE_INTERNAL],

View File

@ -8,7 +8,6 @@ endif
libfuse_lite_la_CFLAGS= \
$(AM_CFLAGS) \
-I$(top_srcdir)/include/fuse-lite \
-D_REENTRANT \
-D_FILE_OFFSET_BITS=64
libfuse_lite_la_LIBADD = $(LIBFUSE_LITE_LIBS)