diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-10 23:54:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-10 23:54:41 +0000 |
commit | 542b6aa18abe9cadcf68c4a5c88bde4353e5eac9 (patch) | |
tree | fa6069eb1a2a268ddd6d8879f706a6930e86353e /compat_fgetln.c | |
parent | f0a7b2d879a302384d0c80008e61e904904e837b (diff) | |
download | mandoc-542b6aa18abe9cadcf68c4a5c88bde4353e5eac9.tar.gz mandoc-542b6aa18abe9cadcf68c4a5c88bde4353e5eac9.tar.zst mandoc-542b6aa18abe9cadcf68c4a5c88bde4353e5eac9.zip |
Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.
Include <sys/types.h> where needed, it does not belong in config.h.
Remove <stdio.h> from config.h; if it is missing somewhere, it should
be added, but i cannot find a *.c file where it is missing.
Diffstat (limited to 'compat_fgetln.c')
-rw-r--r-- | compat_fgetln.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compat_fgetln.c b/compat_fgetln.c index 49c9985b..667d1f76 100644 --- a/compat_fgetln.c +++ b/compat_fgetln.c @@ -1,6 +1,4 @@ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_FGETLN @@ -41,6 +39,9 @@ int dummy; * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ + +#include <sys/types.h> + #include <errno.h> #include <stdio.h> #include <stdlib.h> |