lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

001-use-stdlib.patch (750B)


      1 Index: mpack-1.6/unixos.c
      2 ===================================================================
      3 --- mpack-1.6.orig/unixos.c
      4 +++ mpack-1.6/unixos.c
      5 @@ -25,6 +25,7 @@
      6  #include <stdio.h>
      7  #include <ctype.h>
      8  #include <string.h>
      9 +#include <stdlib.h>
     10  #include <errno.h>
     11  #include <sys/types.h>
     12  #include <sys/param.h>
     13 @@ -39,8 +40,6 @@
     14  #endif
     15  
     16  extern int errno;
     17 -extern char *malloc();
     18 -extern char *getenv();
     19  
     20  int overwrite_files = 0;
     21  int didchat;
     22 Index: mpack-1.6/xmalloc.c
     23 ===================================================================
     24 --- mpack-1.6.orig/xmalloc.c
     25 +++ mpack-1.6/xmalloc.c
     26 @@ -24,7 +24,7 @@
     27   */
     28  #include <stdio.h>
     29  #include <string.h>
     30 -extern char *malloc(), *realloc();
     31 +#include <stdlib.h>
     32  
     33  char *xmalloc (int size)
     34  {