Changeset 5692 for pjproject/trunk/pjlib/include/pj/compat/socket.h
- Timestamp:
- Nov 13, 2017 6:06:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/compat/socket.h
r5445 r5692 186 186 187 187 /* 188 * Linux kernel specifics189 */190 #if defined(PJ_LINUX_KERNEL)191 # include <linux/net.h>192 # include <asm/ioctls.h> /* FIONBIO */193 # include <linux/syscalls.h> /* sys_select() */194 # include <asm/uaccess.h> /* set/get_fs() */195 196 typedef int socklen_t;197 # define getsockopt sys_getsockopt198 199 /*200 * Wrapper for select() in Linux kernel.201 */202 PJ_INLINE(int) select(int n, fd_set *inp, fd_set *outp, fd_set *exp,203 struct timeval *tvp)204 {205 int count;206 mm_segment_t oldfs = get_fs();207 set_fs(KERNEL_DS);208 count = sys_select(n, inp, outp, exp, tvp);209 set_fs(oldfs);210 return count;211 }212 #endif /* PJ_LINUX_KERNEL */213 214 215 /*216 188 * This will finally be obsoleted, since it should be declared in 217 189 * os_auto.h
Note: See TracChangeset
for help on using the changeset viewer.