[hackers] [scc] Don't include <sys/types.h> in cc.h || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 16 Feb 2017 07:16:17 +0100 (CET)

commit f8ee0a65040db22d587ccb3f84fb6750f1bf476b
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Feb 16 07:14:53 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Feb 16 07:14:53 2017 +0100

    Don't include <sys/types.h> in cc.h
    
    This file is intended to be c99, so we shouldn't use a POSIX
    header there, and we should use stddef.h, that defines size_t.

diff --git a/inc/cc.h b/inc/cc.h
index 7fcc4fd..be86109 100644
--- a/inc/cc.h
+++ b/inc/cc.h
_AT_@ -1,5 +1,5 @@
 /* See LICENSE file for copyright and license details. */
-#include <sys/types.h>
+#include <stddef.h>
 
 #ifndef NDEBUG
 extern int debug;
Received on Thu Feb 16 2017 - 07:16:17 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 16 2017 - 07:24:21 CET