utils/ctdlmigrate.c utils/base64.c utils/chkpwd.c \
utillib/citadel_dirs.c \
citserver.c clientsocket.c config.c control.c $(DATABASE) \
- domain.c serv_extensions.c file_ops.c genstamp.c getutline.c \
+ domain.c serv_extensions.c file_ops.c genstamp.c \
housekeeping.c ical_dezonify.c internet_addressing.c ecrash.c \
locate_host.c md5.c auth.c msgbase.c parsedate.c \
room_ops.c euidindex.c server_main.c snprintf.c ldap.c \
test "$DATABASE" && TARGETS="server utils"
fi
-AC_REPLACE_FUNCS(snprintf getutline)
-
AC_CACHE_CHECK([the weather], ac_cv_weather, [
sleep 1
echo $ECHO_N "opening your window... $ECHO_C" >&6
+++ /dev/null
-/*
- * getutline.c: not-quite-compatible replacement for getutline(3)
- * by nathan bryant, feb 1999
- */
-
-#include "sysdep.h"
-#ifdef HAVE_UTMP_H
-#include <stdio.h>
-#include <sys/types.h>
-#include <utmp.h>
-#ifdef HAVE_PATHS_H
-#include <paths.h>
-#endif
-#include <string.h>
-
-struct utmp *getutline(struct utmp *ut)
-{
- static struct utmp retval;
- FILE *utmp;
-
-#ifdef UTMP_FILE
- if ((utmp = fopen(UTMP_FILE, "rb")) == NULL)
-#else
- if ((utmp = fopen(_PATH_UTMP, "rb")) == NULL)
-#endif
- return NULL;
-
- do
- if (!fread(&retval, sizeof retval, 1, utmp))
- {
- fclose(utmp);
- return NULL;
- }
- while (strcmp(ut->ut_line, retval.ut_line));
-
- fclose(utmp);
- return &retval;
-}
-#endif /* HAVE_UTMP_H */
src/citadel_ipc.c \
src/ecrash.c \
src/ipc_c_tcp.c \
+ src/getutline.c \
src/screen.c
# for VPATH builds (invoked by configure)
--- /dev/null
+/*
+ * getutline.c: not-quite-compatible replacement for getutline(3)
+ * by nathan bryant, feb 1999
+ */
+
+#include "sysdep.h"
+#ifdef HAVE_UTMP_H
+#include <stdio.h>
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#endif
+#include <string.h>
+
+struct utmp *getutline(struct utmp *ut)
+{
+ static struct utmp retval;
+ FILE *utmp;
+
+#ifdef UTMP_FILE
+ if ((utmp = fopen(UTMP_FILE, "rb")) == NULL)
+#else
+ if ((utmp = fopen(_PATH_UTMP, "rb")) == NULL)
+#endif
+ return NULL;
+
+ do
+ if (!fread(&retval, sizeof retval, 1, utmp))
+ {
+ fclose(utmp);
+ return NULL;
+ }
+ while (strcmp(ut->ut_line, retval.ut_line));
+
+ fclose(utmp);
+ return &retval;
+}
+#endif /* HAVE_UTMP_H */