[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
openat includes
From: |
Bruno Haible |
Subject: |
openat includes |
Date: |
Sat, 5 Nov 2011 09:46:24 +0100 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
lib/openat.c uses 'bool' and relies on openat.h for <stdbool.h>. This is a
pitfall for future refactorings and makes dependency analysis a bit harder
than needed. It's better to make the include explicit.
2011-11-05 Bruno Haible <address@hidden>
openat: Include <stdbool.h>.
* lib/openat.c: Include <stdbool.h>.
*** lib/openat.c.orig Sat Nov 5 09:42:47 2011
--- lib/openat.c Sat Nov 5 03:23:32 2011
***************
*** 42,47 ****
--- 42,48 ----
#include "openat.h"
#include <stdarg.h>
+ #include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <sys/stat.h>
--
In memoriam Bernhard Lichtenberg
<http://en.wikipedia.org/wiki/Bernhard_Lichtenberg>
- openat includes,
Bruno Haible <=