#include <stdlib.h>
#include <string.h>
#include <sys/param.h> /* MAXPATHLEN */
+#include <time.h>
/* for Xrm */
#include <X11/Intrinsic.h>
# include <time.h>
# include <utime.h>
# include <pwd.h>
-#if defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__) || \
- defined(sun)
+#if defined(linux) || defined(CSRG_BASED) || defined(sun)
# include <stdarg.h>
#else
# include <varargs.h>
***************************************************************************/
/*#if defined(SYSV) && !defined(hpux)*/
-#if defined(SYSV) || defined(SVR4) || defined(linux) || defined(__FreeBSD__) || defined(OpenBSD)
+#if defined(SYSV) || defined(SVR4) || defined(linux) || defined(CSRG_BASED)
# include <sys/wait.h>
# define waitCode(w) WEXITSTATUS(w)
# define waitSig(w) WTERMSIG(w)
DtMailEnv error;
iconv_t cd;
size_t ileft = (size_t) bp_len, oleft = (size_t) bp_len, ret = 0;
-#if defined(_AIX) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(_AIX) || defined(sun) || defined(CSRG_BASED)
const char *ip = (const char *) *bp;
#else
char *ip = *bp;
DtMailEnv error;
iconv_t cd;
size_t ileft = (size_t) bp_len, oleft = (size_t) bp_len, ret = 0;
-#if defined(_aix) || defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(_aix) || defined(sun) || defined(CSRG_BASED)
const char *ip = (const char *) *bp;
#else
char *ip = *bp;
XEvent reply;
Status status;
FILE *errlog;
- long now;
+ time_t now;
char *eec;
Atom tmpa;
void mgr_shutdown_scan()
{
int i;
- long now;
+ time_t now;
FILE *errlog;
static int errlog_problem_notice = 0;
Bool shutdown_time;
int n
)
{
-#if !defined(linux) && !defined(__FreeBSD__) && !defined(__NetBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
extern int sys_nerr;
#endif
#if defined(__osf__)
sprintf(buf, "LANG=C lpstat -o%s", printer);
#endif
-#if defined(linux) || defined(__OpenBSD__)
+#if defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__)
snprintf(buf, 1000, "LANG=C lpq -P%s", printer);
#elif defined(__FreeBSD__)
snprintf(buf, 1000, "LANG=C /usr/local/bin/lpq -P%s", printer);
#elif defined(__FreeBSD__)
manpath = "/usr/share/man:/usr/local/man";
#elif defined(__NetBSD__)
- manpath = "/usr/share/man:/usr/X11R6/man:/usr/X11R7/man";
+ manpath = "/usr/share/man:/usr/X11R6/man:/usr/X11R7/man:/usr/local/man:/usr/pkg/man";
#endif
else
manpath = temp;