root / trunk / data / dpkg / port.diff

Revision 2, 2.6 kB (checked in by saurik, 11 months ago)

Initial commit.

  • lib/Makefile.am

    diff -ru dpkg-1.13.25/lib/Makefile.am dpkg-1.13.25+iPhone/lib/Makefile.am
    old new  
    3434        tarfn.c tarfn.h \ 
    3535        utils.c \ 
    3636        varbuf.c \ 
    37         vercmp.c 
     37        vercmp.c \ 
     38        obstack.c 
  • lib/tarfn.c

    diff -ru dpkg-1.13.25/lib/tarfn.c dpkg-1.13.25+iPhone/lib/tarfn.c
    old new  
    5353        return n; 
    5454} 
    5555 
     56int strnlen(const char *s, int size) { 
     57    for (int i = 0; i != size; ++i) 
     58        if (s[i] == '\0') 
     59            return i; 
     60    return size; 
     61} 
     62 
    5663/* String block to C null-terminated string */ 
    5764char * 
    5865StoC(const char *s, int size) 
  • m4/funcs.m4

    diff -ru dpkg-1.13.25/m4/funcs.m4 dpkg-1.13.25+iPhone/m4/funcs.m4
    old new  
    33# Define HAVE_VA_COPY if we have va_copy, fail if they can't be assigned 
    44AC_DEFUN([DPKG_FUNC_VA_COPY], 
    55[AC_CACHE_CHECK([for va_copy], [dpkg_cv_va_copy], 
    6 [AC_TRY_RUN( 
     6[AC_TRY_COMPILE( 
    77[#include <stdarg.h> 
    88main() { 
    99va_list v1, v2; 
  • src/help.c

    diff -ru dpkg-1.13.25/src/help.c dpkg-1.13.25+iPhone/src/help.c
    old new  
    6969 
    7070void checkpath(void) { 
    7171/* Verify that some programs can be found in the PATH. */ 
    72   static const char *const checklist[]= { "ldconfig",  
    73 #ifdef WITH_START_STOP_DAEMON 
    74     "start-stop-daemon", 
    75 #endif     
    76     "install-info", "update-rc.d", 0 
     72  static const char *const checklist[]= {  
     73    "install-info", 0 
    7774  }; 
    7875 
    7976  struct stat stab; 
  • utils/start-stop-daemon.c

    diff -ru dpkg-1.13.25/utils/start-stop-daemon.c dpkg-1.13.25+iPhone/utils/start-stop-daemon.c
    old new  
    3232#  define OSOpenBSD 
    3333#elif defined(hpux) 
    3434#  define OShpux 
    35 #elif defined(__FreeBSD__) 
     35#elif defined(__FreeBSD__) || 1 
    3636#  define OSFreeBSD 
    3737#elif defined(__NetBSD__) 
    3838#  define OSNetBSD 
     
    928928                errx(1, "%s", errbuf); 
    929929        if ((kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries)) == 0) 
    930930                errx(1, "%s", kvm_geterr(kd)); 
    931         if (kp->kp_proc.p_cred ) 
     931        /*if (kp->kp_proc.p_cred ) 
    932932                kvm_read(kd, (u_long)&(kp->kp_proc.p_cred->p_ruid), 
    933933                        &proc_uid, sizeof(uid_t)); 
    934         else 
     934        else*/ 
    935935                return 0; 
    936936        return (proc_uid == (uid_t)uid); 
    937937} 
Note: See TracBrowser for help on using the browser.