$Log$
+ Revision 580.58 2001/10/16 01:48:55 nbryant
+ - configury tweaks for a /usr/include/db3 goof and Digital/Tru64 Unix
+ - #ifdef out inline on non-GCC compilers
+
Revision 580.57 2001/10/15 19:50:50 ajc
* Fixed a bug in the loopzapper that was corrupting the use table saved copy.
* Post notification in Aide> when the loopzapper catches a message.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
dnl build pthreads programs with gcc due to header problems.
alpha*-dec-osf*)
test -z "$CC" && CC=cc
- PTHREAD_DEFS=-pthread
- PTHREAD_LIBS=-pthread
+ PTHREAD_LIBS="-lpthread -lexc"
check_pthread=no
;;
- dnl FreeBSD is similar to Digital UNIX:
+ dnl FreeBSD is similar to Digital UNIX with DEC C, which has a -pthread flag:
*-*-freebsd*)
if test "$with_kthread" = yes; then
PTHREAD_LIBS=-kthread
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-test "$db_dir" && CPPFLAGS="$CPPFLAGS -I$db_dir/include" || test -d /usr/include/db3 && CPPFLAGS="$CPPFLAGS -I/usr/include/db3"
+test "$db_dir" && CPPFLAGS="$CPPFLAGS -I$db_dir/include" || ( test -d /usr/include/db3 && CPPFLAGS="$CPPFLAGS -I/usr/include/db3" )
AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h)
AC_CHECK_HEADER(resolv.h, [SMTP=modules/libsmtp.la; DOMAIN=domain.c])
#ifndef SERVER_H
#define SERVER_H
+#ifdef __GNUC__
+#define INLINE inline
+#else
+#define INLINE
+#endif
+
#ifdef __CYGWIN__
#ifdef IN_LIBCIT
/*
* Bind a thread to a context. (It's inline merely to speed things up.)
*/
-inline void become_session(struct CitContext *which_con) {
+INLINE void become_session(struct CitContext *which_con) {
pthread_setspecific(MyConKey, (void *)which_con );
}
void cmd_nset (char *cmdbuf);
int convert_login (char *NameToConvert);
void *worker_thread (void *arg);
-inline void become_session(struct CitContext *which_con);
+void become_session(struct CitContext *which_con);
void CtdlRedirectOutput(FILE *fp, int sock);
void InitializeMasterCC(void);
void init_master_fdset(void);