Add linux compatibility
[zfs.git] / module / zfs / include / sys / spa.h
index 456ec06..52737eb 100644 (file)
@@ -350,13 +350,14 @@ typedef struct blkptr {
        int size = BP_SPRINTF_LEN;                                      \
        int len = 0;                                                    \
        int copies = 0;                                                 \
+       int d;                                                          \
                                                                        \
        if (bp == NULL) {                                               \
                len = func(buf + len, size - len, "<NULL>");            \
        } else if (BP_IS_HOLE(bp)) {                                    \
                len = func(buf + len, size - len, "<hole>");            \
        } else {                                                        \
-               for (int d = 0; d < BP_GET_NDVAS(bp); d++) {            \
+               for (d = 0; d < BP_GET_NDVAS(bp); d++) {                \
                        const dva_t *dva = &bp->blk_dva[d];             \
                        if (DVA_IS_VALID(dva))                          \
                                copies++;                               \
@@ -673,7 +674,7 @@ extern void vdev_cache_stat_fini(void);
 /* Initialization and termination */
 extern void spa_init(int flags);
 extern void spa_fini(void);
-extern void spa_boot_init();
+extern void spa_boot_init(void);
 
 /* properties */
 extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);