1.06-headers.patch 640 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- a/qmail-pw2u.c
  2. +++ b/qmail-pw2u.c
  3. @@ -1,3 +1,4 @@
  4. +#include <unistd.h>
  5. #include <sys/types.h>
  6. #include <sys/stat.h>
  7. #include "substdio.h"
  8. --- a/qmail-qmtpd.c
  9. +++ b/qmail-qmtpd.c
  10. @@ -1,3 +1,4 @@
  11. +#include <unistd.h>
  12. #include "stralloc.h"
  13. #include "substdio.h"
  14. #include "qmail.h"
  15. --- a/readwrite.h
  16. +++ b/readwrite.h
  17. @@ -1,7 +1,7 @@
  18. #ifndef READWRITE_H
  19. #define READWRITE_H
  20. -extern int read();
  21. -extern int write();
  22. +#include <fcntl.h>
  23. +#include <unistd.h>
  24. #endif
  25. --- a/substdio.h
  26. +++ b/substdio.h
  27. @@ -1,6 +1,8 @@
  28. #ifndef SUBSTDIO_H
  29. #define SUBSTDIO_H
  30. +#include <unistd.h>
  31. +
  32. typedef struct substdio {
  33. char *x;
  34. int p;