From c667b33a04b742472541ecba091be17943362d68 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Sun, 8 Jan 2017 19:45:53 +0100 Subject: [PATCH] mcstransd: fix and reorder includes - Sort included header files by their number of path components then alphabetically. - Include unistd.h and sys/types.h only once. - Include sys/uio.h to get readv() and writev() declarations when compiling with musl libc. - Include poll.h instead of sys/poll.h as building with musl results in the following message: /usr/lib/musl/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include to [-Werror=cpp] #warning redirecting incorrect #include to ^~~~~~~ Signed-off-by: Nicolas Iooss --- mcstrans/src/mcstransd.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mcstrans/src/mcstransd.c b/mcstrans/src/mcstransd.c index f408e9f8..a5ed3618 100644 --- a/mcstrans/src/mcstransd.c +++ b/mcstrans/src/mcstransd.c @@ -1,22 +1,21 @@ /* Copyright (c) 2006 Trusted Computer Solutions, Inc. */ -#include -#include -#include -#include -#include #include +#include +#include #include #include -#include #include -#include #include #include #include #include -#include #include #include +#include +#include +#include +#include +#include #include "mcstrans.h" #ifdef UNUSED