summaryrefslogtreecommitdiff
path: root/partx
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-09-07 21:57:24 +0200
committerKarel Zak <kzak@redhat.com>2008-09-16 11:29:42 +0200
commit3342f88dec9af581385a52a9add92c40c0939b6d (patch)
tree91d87f428c44e1fc70e142d513add02bfc11a9af /partx
parentf635c336c45c1c998ace05c37a83cab5d398bee9 (diff)
downloadutil-linux-old-3342f88dec9af581385a52a9add92c40c0939b6d.tar.gz
partx: don't redeclare daddr_t
klibc porting fix, use proper include, nuke redefinition. solaris.c:8: error: redefinition of typedef ‘daddr_t’ /usr/lib/klibc/include/sys/types.h:29: error: previous declaration of ‘daddr_t’ was here Signed-off-by: maximilian attems <max@stro.at>
Diffstat (limited to 'partx')
-rw-r--r--partx/solaris.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/partx/solaris.c b/partx/solaris.c
index 86a3e364..24075aed 100644
--- a/partx/solaris.c
+++ b/partx/solaris.c
@@ -1,12 +1,11 @@
#include <stdio.h>
#include <time.h> /* time_t */
+#include <sys/types.h>
#include "partx.h"
#define SOLARIS_X86_NUMSLICE 8
#define SOLARIS_X86_VTOC_SANE (0x600DDEEEUL)
-typedef int daddr_t; /* or long - check */
-
struct solaris_x86_slice {
unsigned short s_tag; /* ID tag of partition */
unsigned short s_flag; /* permision flags */