Changeset 3166:944d784785c2 in roaraudio for libroaross
- Timestamp:
- 01/15/10 19:25:04 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r3165 r3166 68 68 #endif 69 69 70 #if defined(ROAR_OS_NETBSD) && defined(ioctl) 71 #define IOCTL_IS_ALIAS 72 #endif 73 70 74 #define OSS_VOLUME_SCALE 100 71 75 … … 99 103 ssize_t (*write)(int fd, const void *buf, size_t count); 100 104 ssize_t (*read)(int fd, void *buf, size_t count); 105 #ifndef IOCTL_IS_ALIAS 101 106 int (*ioctl)(int d, int request, ...); 107 #endif 102 108 } _os; 103 109 … … 140 146 _os.write = dlsym(REAL_LIBC, "write"); 141 147 _os.read = dlsym(REAL_LIBC, "read"); 148 #ifndef IOCTL_IS_ALIAS 142 149 _os.ioctl = dlsym(REAL_LIBC, "ioctl"); 150 #endif 143 151 } 144 152 … … 807 815 } 808 816 817 #ifdef IOCTL_IS_ALIAS 818 errno = ENOSYS; 819 return -1; 820 #else 809 821 return _os.ioctl(__fd, __request, argp); 822 #endif 810 823 } 811 824
Note: See TracChangeset
for help on using the changeset viewer.