$Log$
+ Revision 608.5 2003/07/22 03:07:50 nbryant
+ fix build for Solaris
+
Revision 608.4 2003/07/20 20:46:06 ajc
* build system: link Berkeley DB only to the server, not to the client & utils
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
citmail: citmail.o config.o
$(CC) citmail.o config.o $(LDFLAGS) -o citmail $(LIBS)
+# setup does need LIBS defined, because it uses network functions which are in -lsocket -lnsl on Solaris.
setup: setup.o tools.o
- $(CC) setup.o tools.o $(SETUP_LIBS) $(LDFLAGS) -o setup
+ $(CC) setup.o tools.o $(LDFLAGS) -o setup $(LIBS) $(SETUP_LIBS)
chkpwd: chkpwd.o auth.o config.o
$(CC) chkpwd.o auth.o config.o $(LDFLAGS) -o chkpwd $(chkpwd_LIBS)
}
snprintf(tempspool, sizeof tempspool,
- "./network/spoolin/ap.%04x",
- getpid());
+ "./network/spoolin/ap.%04lx",
+ (long)getpid());
unlink(tempspool);
return;
}
snprintf(outfile, sizeof outfile,
- "%s/network/spoolin/nsf.%04x.%04x",
- BBSDIR, getpid(), ++seq);
+ "%s/network/spoolin/nsf.%04lx.%04x",
+ BBSDIR, (long)getpid(), ++seq);
ofp = fopen(outfile, "a");
if (ofp == NULL) {
cprintf("%d internal error\n", ERROR);
}
snprintf(CC->upl_path, sizeof CC->upl_path,
- "%s/network/spoolin/%s.%04x.%04x",
- BBSDIR, CC->net_node, getpid(), ++seq);
+ "%s/network/spoolin/%s.%04lx.%04x",
+ BBSDIR, CC->net_node, (long)getpid(), ++seq);
CC->upload_fp = fopen(CC->upl_path, "r");
if (CC->upload_fp != NULL) {