summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-11-16 10:12:47 +0000
committerOlivier Blin <oblin@mandriva.com>2007-11-16 10:12:47 +0000
commit947b9b17c1f2b532def0c9a8dbfc741e5dab037d (patch)
treec1bf86f02842baa241741580755141e7617f8742 /mdk-stage1
parent3a8e3083d4f23d459e8498b81779ddbb3b912948 (diff)
downloaddrakx-backup-do-not-use-947b9b17c1f2b532def0c9a8dbfc741e5dab037d.tar
drakx-backup-do-not-use-947b9b17c1f2b532def0c9a8dbfc741e5dab037d.tar.gz
drakx-backup-do-not-use-947b9b17c1f2b532def0c9a8dbfc741e5dab037d.tar.bz2
drakx-backup-do-not-use-947b9b17c1f2b532def0c9a8dbfc741e5dab037d.tar.xz
drakx-backup-do-not-use-947b9b17c1f2b532def0c9a8dbfc741e5dab037d.zip
fix build with gcc
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/ka.c1
-rw-r--r--mdk-stage1/params.c1
-rw-r--r--mdk-stage1/utils.c1
-rw-r--r--mdk-stage1/utils.h2
4 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/ka.c b/mdk-stage1/ka.c
index 5231f1d28..7d8325084 100644
--- a/mdk-stage1/ka.c
+++ b/mdk-stage1/ka.c
@@ -19,6 +19,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <unistd.h>
#include "config-stage1.h"
#include "frontend.h"
diff --git a/mdk-stage1/params.c b/mdk-stage1/params.c
index 311f8b0ea..38ac94956 100644
--- a/mdk-stage1/params.c
+++ b/mdk-stage1/params.c
@@ -13,6 +13,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/mdk-stage1/utils.c b/mdk-stage1/utils.c
index 4846a0aea..434704bef 100644
--- a/mdk-stage1/utils.c
+++ b/mdk-stage1/utils.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/mdk-stage1/utils.h b/mdk-stage1/utils.h
index 3270fda70..fe02bc00c 100644
--- a/mdk-stage1/utils.h
+++ b/mdk-stage1/utils.h
@@ -15,6 +15,8 @@
#ifndef _UTILS_H_
#define _UTILS_H_
+#include <sys/stat.h>
+
int charstar_to_int(const char * s);
off_t file_size(const char * path);
char * cat_file(const char * file, struct stat * s);