require '_h2ph_pre.ph';

unless(defined(&LINUX_NBD_H)) {
    eval 'sub LINUX_NBD_H () {1;}' unless defined(&LINUX_NBD_H);
    eval 'sub NBD_SET_SOCK () { &_IO( 0xab, 0);}' unless defined(&NBD_SET_SOCK);
    eval 'sub NBD_SET_BLKSIZE () { &_IO( 0xab, 1);}' unless defined(&NBD_SET_BLKSIZE);
    eval 'sub NBD_SET_SIZE () { &_IO( 0xab, 2);}' unless defined(&NBD_SET_SIZE);
    eval 'sub NBD_DO_IT () { &_IO( 0xab, 3);}' unless defined(&NBD_DO_IT);
    eval 'sub NBD_CLEAR_SOCK () { &_IO( 0xab, 4);}' unless defined(&NBD_CLEAR_SOCK);
    eval 'sub NBD_CLEAR_QUE () { &_IO( 0xab, 5);}' unless defined(&NBD_CLEAR_QUE);
    eval 'sub NBD_PRINT_DEBUG () { &_IO( 0xab, 6);}' unless defined(&NBD_PRINT_DEBUG);
    eval 'sub NBD_SET_SIZE_BLOCKS () { &_IO( 0xab, 7);}' unless defined(&NBD_SET_SIZE_BLOCKS);
    eval 'sub NBD_DISCONNECT () { &_IO( 0xab, 8);}' unless defined(&NBD_DISCONNECT);
    if(defined(&MAJOR_NR)) {
	require 'linux/locks.ph';
	require 'asm/semaphore.ph';
	eval 'sub LOCAL_END_REQUEST () {1;}' unless defined(&LOCAL_END_REQUEST);
	require 'linux/blk.ph';
	if(defined(&PARANOIA)) {
	}
	if(defined(&PARANOIA)) {
	}
	eval 'sub MAX_NBD () {128;}' unless defined(&MAX_NBD);
	eval 'sub NBD_READ_ONLY () {0x1;}' unless defined(&NBD_READ_ONLY);
	eval 'sub NBD_WRITE_NOCHK () {0x2;}' unless defined(&NBD_WRITE_NOCHK);
    }
    eval 'sub NBD_REQUEST_MAGIC () {0x25609513;}' unless defined(&NBD_REQUEST_MAGIC);
    eval 'sub NBD_REPLY_MAGIC () {0x67446698;}' unless defined(&NBD_REPLY_MAGIC);
    if(defined(&__GNUC__)) {
    }
}
1;
