[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: parted-1.8.3
From: |
Chris Clayton |
Subject: |
Patch: parted-1.8.3 |
Date: |
Sat, 17 Mar 2007 14:23:28 +0000 |
User-agent: |
KMail/1.9.6 |
Hi,
I've had to apply the patch below to allow applications to build with gcc 4.1.2
when /usr/include/parted/disk.h is included: Without the patch I get "used
before
declared" errors for the enums and structs.
Both parted itself and qtparted build with this patch applied.
Hope this helps.
Chris
--- parted-1.8.3/include/parted/disk.h~ 2007-03-17 13:43:18.000000000 +0000
+++ parted-1.8.3/include/parted/disk.h 2007-03-17 13:56:12.000000000 +0000
@@ -27,20 +27,6 @@
#ifndef PED_DISK_H_INCLUDED
#define PED_DISK_H_INCLUDED
-typedef enum _PedPartitionType PedPartitionType;
-typedef enum _PedPartitionFlag PedPartitionFlag;
-typedef enum _PedDiskTypeFeature PedDiskTypeFeature;
-typedef struct _PedDisk PedDisk;
-typedef struct _PedPartition PedPartition;
-typedef const struct _PedDiskOps PedDiskOps;
-typedef struct _PedDiskType PedDiskType;
-typedef const struct _PedDiskArchOps PedDiskArchOps;
-
-#include <parted/device.h>
-#include <parted/filesys.h>
-#include <parted/natmath.h>
-#include <parted/geom.h>
-
/**
* Partition types
*/
@@ -79,6 +65,26 @@
#define PED_DISK_TYPE_FIRST_FEATURE PED_DISK_TYPE_EXTENDED
#define PED_DISK_TYPE_LAST_FEATURE PED_DISK_TYPE_PARTITION_NAME
+struct _PedDisk;
+struct _PedPartition;
+struct _PedDiskOps;
+struct _PedDiskType;
+struct _PedDiskArchOps;
+
+typedef enum _PedPartitionType PedPartitionType;
+typedef enum _PedPartitionFlag PedPartitionFlag;
+typedef enum _PedDiskTypeFeature PedDiskTypeFeature;
+typedef struct _PedDisk PedDisk;
+typedef struct _PedPartition PedPartition;
+typedef const struct _PedDiskOps PedDiskOps;
+typedef struct _PedDiskType PedDiskType;
+typedef const struct _PedDiskArchOps PedDiskArchOps;
+
+#include <parted/device.h>
+#include <parted/filesys.h>
+#include <parted/natmath.h>
+#include <parted/geom.h>
+
/** @} */
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch: parted-1.8.3,
Chris Clayton <=