[hackers] [sbase] util.h, mode_t: sys/types.h defines mode_t || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 17 Jun 2014 00:04:50 +0200

commit 696cbdbb688b16a2522f5ee98c56bf7c55071fab
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon Jun 16 23:38:57 2014 +0200

    util.h, mode_t: sys/types.h defines mode_t
    
    see: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
    
    this removes the warning with gcc (but musl didn't have this warning).

diff --git a/util.h b/util.h
index 9cd7050..516a5c2 100644
--- a/util.h
+++ b/util.h
_AT_@ -1,6 +1,6 @@
 /* See LICENSE file for copyright and license details. */
 #include <stddef.h>
-#include <sys/stat.h>
+#include <sys/types.h>
 #include "arg.h"
 
 #define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
Received on Tue Jun 17 2014 - 00:04:50 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 17 2014 - 00:12:21 CEST