Using autoconf check define fmode_t typedef if undefined.

This commit is contained in:
Brian Behlendorf 2009-12-23 14:45:04 -08:00
parent 05952b960d
commit 9345a0c1a0
2 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,10 @@
#include <linux/elevator.h>
#include "zfs_config.h"
#ifndef HAVE_FMODE_T
typedef unsigned __bitwise__ fmode_t;
#endif /* HAVE_FMODE_T */
#ifndef HAVE_BLK_FETCH_REQUEST
static inline struct request *
blk_fetch_request(struct request_queue *q)

View File

@ -681,10 +681,6 @@ zvol_remove(zvol_state_t *zv_remove)
list_remove(&zvol_state_list, zv_remove);
}
#ifndef HAVE_BDEV_BLOCK_DEVICE_OPERATIONS
typedef unsigned __bitwise__ fmode_t;
#endif /* HAVE_BDEV_BLOCK_DEVICE_OPERATIONS */
static int
zvol_open(struct block_device *bdev, fmode_t flag)
{