Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8de38a48 authored by deuce's avatar deuce

Fix build.

parent 1fb09159
CC = gcc
CXX = g++
CC ?= gcc
CXX ?= g++
SRC_ROOT := ../../..
include ${SRC_ROOT}/build/Common.gmake
......
......@@ -21,10 +21,10 @@ main(void) {
INT16 lvl=0;
INT16 cnt;
char nnm[36];
system("mv "ENEMY_FILENAME" nyenmb.dat");
system("mv "ENEMY_INDEX" nyenmb.idx");
system("rm "ENEMY_FILENAME);
system("rm "ENEMY_INDEX);
system("mv " ENEMY_FILENAME " nyenmb.dat");
system("mv " ENEMY_INDEX " nyenmb.idx");
system("rm " ENEMY_FILENAME);
system("rm " ENEMY_INDEX);
eidx.first_enemy[0]=0;
do {
......
......@@ -6618,7 +6618,7 @@ dobadwords(char *s) {
}
tryagain=TRUE;
}
if(++p=='\0')
if(++p==NULL)
break;
}
}
......
......@@ -1070,7 +1070,7 @@ int main(int argc, char *argv[]) {
sscanf(*fname, SBYDBT_PREFIX".%d", &cnt);
sprintf(numstr, SBYDB_PREFIX".%03d", cnt);
copyfile(numstr, SBYDB_PREFIX""TEMP_EXTENSION);
copyfile(numstr, SBYDB_PREFIX "" TEMP_EXTENSION);
ny_remove(numstr);
//printf("J");
......@@ -1081,7 +1081,7 @@ int main(int argc, char *argv[]) {
while (ny_fread(&ibscr_rec, sizeof(ibbs_scr_rec), 1, jfile) == 1) {
//printf("L");
njustfile = ShareFileOpen(SBYDB_PREFIX""TEMP_EXTENSION, "r+b");
njustfile = ShareFileOpen(SBYDB_PREFIX "" TEMP_EXTENSION, "r+b");
justfile = ShareFileOpen(numstr, "a+b");
found = FALSE;
//printf("M");
......@@ -1120,7 +1120,7 @@ int main(int argc, char *argv[]) {
fclose(jfile);
}
ny_remove(*fname);
ny_remove(SBYDB_PREFIX""TEMP_EXTENSION);
ny_remove(SBYDB_PREFIX "" TEMP_EXTENSION);
//printf("S");
justfile = ShareFileOpen(IBBSSPY_FILENAME, "r+b");
//fseek(justfile, 0, SEEK_SET);
......
OBJS = \
$(MTOBJODIR)$(DIRSEP)ny2008$(OFILE) \
$(MTOBJODIR)$(DIRSEP)second$(OFILE) \
$(MTOBJODIR)$(DIRSEP)igmsup$(OFILE) \
$(MTOBJODIR)$(DIRSEP)ibbsny$(OFILE) \
$(MTOBJODIR)$(DIRSEP)fights$(OFILE) \
$(MTOBJODIR)$(DIRSEP)chatadd$(OFILE)
AEDIT_OBJS = \
$(MTOBJODIR)$(DIRSEP)aedit$(OFILE)
MEDIT_OBJS = \
$(MTOBJODIR)$(DIRSEP)medit$(OFILE)
NYIBBS_OBJS = \
$(MTOBJODIR)$(DIRSEP)nyibbs$(OFILE) \
$(MTOBJODIR)$(DIRSEP)ibbsny$(OFILE)
NYEDIT_OBJS = \
$(MTOBJODIR)$(DIRSEP)nyedit$(OFILE)
NY2008 = $(EXEODIR)$(DIRSEP)ny2008$(EXEFILE)
AEDIT = $(EXEODIR)$(DIRSEP)aedit$(EXEFILE)
MEDIT = $(EXEODIR)$(DIRSEP)medit$(EXEFILE)
NYIBBS = $(EXEODIR)$(DIRSEP)myibbs$(EXEFILE)
NYEDIT = $(EXEODIR)$(DIRSEP)nyedit$(EXEFILE)
all: xpdev-mt ciolib-mt uifc-mt $(MTOBJODIR) $(EXEODIR) $(NY2008) $(AEDIT) $(MEDIT) $(NYIBBS) $(NYEDIT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment