shithub: lwext4

Download patch

ref: eb76049452cda81dcf2a1ae891085c6fffeea2f8
parent: 2064a55284f4735920c790a54e94d357095e79a6
author: gkostka <[email protected]>
date: Thu Oct 8 14:33:32 EDT 2015

Remove cdefs header from tree

Not all toolchan has this header

--- a/lwext4/tree.h
+++ b/lwext4/tree.h
@@ -30,8 +30,9 @@
 #ifndef	_SYS_TREE_H_
 #define	_SYS_TREE_H_
 
-#include <sys/cdefs.h>
-
+#ifdef __GNUC__
+#define __unused __attribute__ ((__unused__))
+#endif
 /*
  * This file defines data structures for different types of trees:
  * splay trees and red-black trees.