]> err.no Git - util-linux/commitdiff
partx: don't redeclare daddr_t
authormaximilian attems <max@stro.at>
Sun, 7 Sep 2008 19:57:24 +0000 (21:57 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Sep 2008 09:29:42 +0000 (11:29 +0200)
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>
partx/solaris.c

index 86a3e36463571bb2b48263caf22a822bcf3008ce..24075aede974c51c7baf3bf35a47422acc795685 100644 (file)
@@ -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 */