source: packages/net/nfs-kernel-server/patches/001-nfs_utils_uclibc.patch @ 25519

Last change on this file since 25519 was 25519, checked in by nbd, 5 years ago

nfs-kernel-server: add a host build for rpcgen with the header file fixes, fix patching of generated files

File size: 958 bytes
  • utils/mountd/cache.c

    a b void auth_unix_gid(FILE *f) 
    142142        pw = getpwuid(uid); 
    143143        if (!pw) 
    144144                rv = -1; 
     145#ifndef __UCLIBC__ 
    145146        else { 
    146147                rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups); 
    147148                if (rv == -1 && ngroups >= 100) { 
    void auth_unix_gid(FILE *f) 
    153154                                                  groups, &ngroups); 
    154155                } 
    155156        } 
     157#endif /* __UCLIBC__ */ 
    156158        qword_printint(f, uid); 
    157159        qword_printint(f, time(0)+30*60); 
    158160        if (rv >= 0) { 
  • support/nfs/svc_socket.c

    a b svc_socket (u_long number, int type, int 
    6666 
    6767  memset (&addr, 0, sizeof (addr)); 
    6868  addr.sin_family = AF_INET; 
    69  
     69#ifndef __UCLIBC__ /* neither getrpcbynumber() nor getrpcbynumber_r() is SuSv3 */ 
    7070  ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata, 
    7171                          &rpcp); 
     72#else 
     73  rpcp = getrpcbynumber (number); 
     74  ret = 0; 
     75#endif 
    7276  if (ret == 0 && rpcp != NULL) 
    7377    { 
    7478      /* First try name.  */ 
Note: See TracBrowser for help on using the repository browser.