Changeset 221

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

make this build on GNU/Linux because some functions don't exist

XXX cannot use largefile support because <fts.h> of glibc is 32-bit only
(wbx@ says that doesn't matter though)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/tools/paxmirabilis/fgetln.c

    r220 r221  
    66 
    77#ifdef __GLIBC__ 
     8ssize_t getline(char **lineptr, size_t *n, FILE *stream); 
     9 
    810char * 
    911fgetln (stream, len) 
  • trunk/freewrt/tools/paxmirabilis/src/cache.c

    r204 r221  
    197197         */ 
    198198        if (!pwopn) { 
    199 #ifndef __INTERIX 
     199#if !defined(__INTERIX) && !defined(__GLIBC__) 
    200200                setpassent(1); 
    201201#endif 
     
    265265         */ 
    266266        if (!gropn) { 
    267 #ifndef __INTERIX 
     267#if !defined(__INTERIX) && !defined(__GLIBC__) 
    268268                setgroupent(1); 
    269269#endif 
     
    334334 
    335335        if (!pwopn) { 
    336 #ifndef __INTERIX 
     336#if !defined(__INTERIX) && !defined(__GLIBC__) 
    337337                setpassent(1); 
    338338#endif 
     
    399399 
    400400        if (!gropn) { 
    401 #ifndef __INTERIX 
     401#if !defined(__INTERIX) && !defined(__GLIBC__) 
    402402                setgroupent(1); 
    403403#endif 
  • trunk/freewrt/tools/paxmirabilis/src/options.c

    r213 r221  
    5959__SCCSID("@(#)options.c 8.2 (Berkeley) 4/18/94"); 
    6060__RCSID("$MirOS: src/bin/pax/options.c,v 1.18 2006/07/16 16:14:50 tg Exp $"); 
     61 
     62#ifdef __GLIBC__ 
     63char *fgetln(FILE *, size_t *); 
     64#endif 
    6165 
    6266/*