View | Details | Raw Unified
Collapse All | Expand All

(-) suspend2-userui-0.6.4/userui.h.orig (-1 / +4 lines)
 Lines 124-131   static __inline__ int generic_fls(int x) Link Here 
/*
/*
 * Work around random glibc bugs where getpid() caches an invalid pid.
 * Work around random glibc bugs where getpid() caches an invalid pid.
 */
 */
#ifdef _syscall0
#define __NR_xgetpid __NR_getpid
#define __NR_xgetpid __NR_getpid
static inline _syscall0(pid_t, xgetpid);
static inline _syscall0(pid_t, xgetpid);
#else
static inline pid_t xgetpid(void) { return syscall(__NR_getpid); }
#endif
#endif /* _USERUI_H_ */
#endif /* _USERUI_H_ */