Changeset 211

Show
Ignore:
Timestamp:
07/16/06 19:11:33 (6 years ago)
Author:
tg
Message:

start compiling this stuff on GNU/Linux
* no vis(3)
* no RCSID() etc. macros, implement these in scripts/param.h

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/tools/paxmirabilis/Makefile

    r209 r211  
    22 
    33WRKBUILD=       $(TOOLS_BUILD_DIR)/paxmirabilis 
     4 
     5OUR_FLAGS=      -I${TOPDIR}/scripts \ 
     6                -include ${TOPDIR}/scripts/param.h 
    47 
    58SRCS=           src/ar_io.c \ 
     
    3841 
    3942${WRKBUILD}/pax: ${SRCS} 
    40         ${HOSTCC} ${HOSTCFLAGS} -Isrc -I${TOPDIR}/scripts -o $@ $^ 
     43        ${HOSTCC} ${HOSTCFLAGS} -Isrc ${OUR_FLAGS} -o $@ $^ 
  • trunk/freewrt/tools/paxmirabilis/src/gen_subs.c

    r204 r211  
    5050#include <stdlib.h> 
    5151#include <string.h> 
     52#ifdef BSD 
    5253#include <vis.h> 
     54#endif 
    5355#include "pax.h" 
    5456#include "extern.h" 
     
    197199safe_print(const char *str, FILE *fp) 
    198200{ 
     201#ifdef BSD 
    199202        char visbuf[5]; 
    200203        const char *cp; 
     
    208211                        (void)fputs(visbuf, fp); 
    209212                } 
    210         } else { 
     213        } else 
     214#endif 
    211215                (void)fputs(str, fp); 
    212         } 
    213216} 
    214217