blob: dc23ae1d8bd1533d3fe507fb2d31ff5cfe1a1b79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Description: our users don't need to depend on mowgli.h
move the #include <mowgli.h> under LIBGUESS_CORE;
also, that revealed a bug in guessconv.c, which implicitly
depended on unistd.h
Author: Andrew O. Shadoura <bugzilla@tut.by>
Bug: http://jira.atheme.org/browse/LG-5
--- a/src/libguess/libguess.h
+++ b/src/libguess/libguess.h
@@ -40,11 +40,12 @@
#include <stdlib.h>
#include <string.h>
-#include <mowgli.h>
/* prototypes */
#ifdef LIBGUESS_CORE
+#include <mowgli.h>
+
#include "autoconf.h"
const char *guess_jp(const char *buf, int buflen);
--- a/src/examples/guessconv/guessconv.c
+++ b/src/examples/guessconv/guessconv.c
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <libguess.h>
#include <iconv.h>
#include <errno.h>
|