#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
+#include <sys/types.h>
#include <string>
#include <vector>
} while (ret == -1 && errno == EINTR);
if (ret == -1) {
- log_perror("pwrite");
+ log_perror("pwritev");
// Dazed and confused, but trying to continue...
return;
}
queued_data.push_back(iov);
} else {
- assert(encoding == Stream::STREAM_ENCODING_RAW);
+ assert(false);
}
}