]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
fgetln: Include <stdio.h> after <sys/*>
authorGuillem Jover <guillem@hadrons.org>
Thu, 27 Jul 2023 11:39:00 +0000 (13:39 +0200)
committerGuillem Jover <guillem@hadrons.org>
Tue, 5 Sep 2023 01:02:20 +0000 (03:02 +0200)
The <sys/*> headers tend to define things that might be used by other
headers, so while they should be self-contained, it is better to simply
include them first.

src/fgetln.c

index b3b0a4bce788a25e307726b573215226ed4e7638..3b62666e5480c70b4fd019a3a1a137909a2bc3e4 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <stdio.h>
 #include <sys/cdefs.h>
 #include <sys/types.h>
+
 #include <string.h>
+#include <stdio.h>
 
 #include "local-link.h"