libtar-1.2.11-free.patch 337 B

1234567891011121314151617181920212223
  1. stdlib.h is required for free()
  2. --- lib/output.c
  3. +++ lib/output.c
  4. @@ -20,6 +20,7 @@
  5. #include <sys/param.h>
  6. #ifdef STDC_HEADERS
  7. +# include <stdlib.h>
  8. # include <string.h>
  9. #endif
  10. --- lib/wrapper.c
  11. +++ lib/wrapper.c
  12. @@ -18,6 +18,7 @@
  13. #include <errno.h>
  14. #ifdef STDC_HEADERS
  15. +# include <stdlib.h>
  16. # include <string.h>
  17. #endif