Skip to content

Commit 98c42be

Browse files
committed
Merge pull request #5 from kaptoxic/master
Correct includes for new glibc
2 parents 9005787 + 0b84758 commit 98c42be

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

src/file.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
1919
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
2020
*/
2121

22+
#include <errno.h>
23+
#include <sys/stat.h>
24+
#include <sys/types.h>
25+
#include <pwd.h>
26+
2227
#include "hypermail.h"
2328
#include "setup.h"
2429
#include "struct.h"
25-
#include <errno.h>
2630
#ifdef HAVE_DIRENT_H
2731
#ifdef __LCC__
2832
#include "../lcc/dirent.h"

src/lang.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#define MAIN_FILE
33
#endif
44

5+
#include <getopt.h>
6+
57
#include "hypermail.h"
68

79
char **valid_language(char *lg, char **locale_code)

src/parse.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
2020
*/
2121

22+
#include <fcntl.h>
23+
#include <sys/stat.h>
24+
2225
#include "hypermail.h"
2326
#include "setup.h"
2427
#include "struct.h"

src/print.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
2020
*/
2121

22+
#include <fcntl.h>
23+
#include <sys/stat.h>
24+
2225
#include "hypermail.h"
2326
#include "setup.h"
2427
#include "struct.h"

src/string.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
** All the nasty string functions live here.
2424
*/
2525

26+
#include <iconv.h>
27+
#include <errno.h>
28+
#include <sys/stat.h>
29+
2630
#include "hypermail.h"
2731
#include "setup.h"
2832
#include "parse.h"

0 commit comments

Comments
 (0)