Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 913363
Collapse All | Expand All

(-)a/meson.build (-17 / +1 lines)
Lines 179-200 endif Link Here
179
# Check for btrfs ioctls
179
# Check for btrfs ioctls
180
##########################################
180
##########################################
181
181
182
result = cc.run('''
182
if cc.has_header_symbol('linux/btrfs.h', 'BTRFS_IOC_INO_LOOKUP')
183
    #include <errno.h>
184
    #include <fcntl.h>
185
    #include <sys/ioctl.h>
186
    #include <linux/btrfs.h>
187
188
    int main (int argc, char *argv[]) {
189
      struct btrfs_ioctl_ino_lookup_args args = { 0, };
190
      int fd = open ("/", O_RDONLY);
191
      int ret = ioctl (fd, BTRFS_IOC_INO_LOOKUP, &args);
192
      return (ret < 0 && errno != ENOTTY) ? 1 : 0;
193
    }
194
  ''',
195
  name: 'BTRFS_IOC_INO_LOOKUP ioctl is available')
196
197
if result.compiled() and result.returncode() == 0
198
  have_btrfs_ioctl = true
183
  have_btrfs_ioctl = true
199
else
184
else
200
  have_btrfs_ioctl = false
185
  have_btrfs_ioctl = false
201
- 

Return to bug 913363