Ticket #18502: patch-ioctl.h.diff

File patch-ioctl.h.diff, 495 bytes (added by 0xffea@…, 16 years ago)
  • ioctl.h

    old new  
    1818
    1919#ifndef __IOCTL_
    2020#define __IOCTL_
     21#ifndef __APPLE__
    2122#include <asm/types.h>
    2223#include <linux/ioctl.h>
     24#endif
     25
     26#include <stdint.h>
    2327
    2428#define BTRFS_IOCTL_MAGIC 0x94
    2529#define BTRFS_VOL_NAME_MAX 255
    2630#define BTRFS_PATH_NAME_MAX 4087
    2731
    2832struct btrfs_ioctl_vol_args {
     33#ifdef __APPLE__
     34        int64_t fd;
     35#else
    2936        __s64 fd;
     37#endif
    3038        char name[BTRFS_PATH_NAME_MAX + 1];
    3139};
    3240