Skip to content

Instantly share code, notes, and snippets.

@matthargett
Created September 21, 2015 17:44
Show Gist options
  • Save matthargett/2cc3fd3caaca01859ec0 to your computer and use it in GitHub Desktop.
Save matthargett/2cc3fd3caaca01859ec0 to your computer and use it in GitHub Desktop.
// include/linux/stddef.h
#undef false
#undef true
// include/linux/compiler-gcc4.h
#undef __always_inline
// include/linux/types.h
#define fd_set mock_fd_set
#define dev_t mock_dev_t
#define timer_t mock_timer_t
#define loff_t mock_loff_t
#define blkcnt_t mock_blkcnt_t
#undef bool
// include/linux/time.h
#undef FD_SET
#undef FD_CLR
#undef FD_ISSET
#undef FD_ZERO
#define timespec mock_timespec
#define timeval mock_timeval
// include/linux/wait.h
#undef WNOHANG
#undef WUNTRACED
#undef WSTOPPED
#undef WEXITED
#undef WCONTINUED
// arch/x86/include/asm/signal.h
#define sigset_t mock_sigset_t
// arch/x86/include/asm/bitops.h
#define ffs(x) mock_ffs(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment