summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonovan Baarda <abo@minkirri.apana.org.au>2021-09-14 21:56:49 +1000
committerDonovan Baarda <abo@minkirri.apana.org.au>2021-09-14 21:56:49 +1000
commit5c2f3a4ca805ab2687468559da27f473999013b1 (patch)
tree14ec82d6248def0233d17cfa7164989cf7e1a185
parent58214f8c816d36ad768baef451761f147846423f (diff)
downloadlibrsync-5c2f3a4ca805ab2687468559da27f473999013b1.tar.gz
Fix the includes and include guard for scoop.h.
This makes it iwyu clean.
-rw-r--r--src/scoop.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/scoop.h b/src/scoop.h
index 7dababd..c6e4cba 100644
--- a/src/scoop.h
+++ b/src/scoop.h
@@ -73,10 +73,12 @@
* On each call into a stream iterator, it should begin by trying to flush
* output. This may well use up all the remaining stream space, in which case
* nothing else can be done. */
-#ifndef STREAM_H
-# define STREAM_H
+#ifndef SCOOP_H
+# define SCOOP_H
+# include <stdbool.h>
+# include <stddef.h>
# include "job.h"
-# include <sys/types.h>
+# include "librsync.h"
rs_result rs_tube_catchup(rs_job_t *job);
int rs_tube_is_idle(rs_job_t const *job);
@@ -178,4 +180,4 @@ static inline void *rs_scoop_nextbuf(rs_job_t *job, size_t *len, size_t *ilen)
return rs_scoop_iterbuf(job, len, ilen);
}
-#endif /* !STREAM_H */
+#endif /* !SCOOP_H */