shithub: scc

Download patch

ref: c0e6f34d48f224066a0bed28dcdd25eb96b4748d
parent: 79d964bda2ecafb7be9fc4f4454248e4f064fb39
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Feb 16 02:14:53 EST 2017

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.

--- a/inc/cc.h
+++ b/inc/cc.h
@@ -1,5 +1,5 @@
 /* See LICENSE file for copyright and license details. */
-#include <sys/types.h>
+#include <stddef.h>
 
 #ifndef NDEBUG
 extern int debug;