Skip to content

Commit

Permalink
Minor portability and compilation fixes.
Browse files Browse the repository at this point in the history
--HG--
branch : HEAD
  • Loading branch information
Thomas Roessler committed Aug 9, 2000
1 parent 1ad889c commit ea188db
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Makefile.am
Expand Up @@ -47,12 +47,12 @@ checktypes_LDADD =
checktypes_DEPENDENCIES =


$(makedoc_OBJECTS): $(makedoc_SOURCES)
$(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $<
# $(makedoc_OBJECTS): $(makedoc_SOURCES)
# $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $<

makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
@rm -rf makedoc
$(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc
# makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
# @rm -rf makedoc
# $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc

CPP=@CPP@

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -204,7 +204,7 @@ AC_CHECK_HEADERS(stdarg.h sys/ioctl.h ioctl.h sysexits.h)
AC_CHECK_HEADERS(sys/time.h sys/resource.h)
AC_CHECK_HEADERS(unix.h)

AC_CHECK_FUNCS(setrlimit)
AC_CHECK_FUNCS(setrlimit getsid)

AC_TYPE_SIGNAL

Expand Down
4 changes: 3 additions & 1 deletion init.c
Expand Up @@ -1836,10 +1836,12 @@ void mutt_init (int skip_sys_rc, LIST *commands)
set_option (OPTLOCALES);
#endif

#ifdef HAVE_GETSID
/* Unset suspend by default if we're the session leader */
if (getsid(0) == getpid())
unset_option (OPTSUSPEND);

#endif

mutt_init_history ();


Expand Down
6 changes: 6 additions & 0 deletions main.c
Expand Up @@ -371,6 +371,12 @@ static void show_version (void)
"-ICONV_NONTRANS "
#endif

#if HAVE_GETSID
"+HAVE_GETSID"
#else
"-HAVE_GETSID"
#endif

);

#ifdef ISPELL
Expand Down

0 comments on commit ea188db

Please sign in to comment.