diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/replacements.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h index 3598dd9..da48b91 100644 --- a/src/helper/replacements.h +++ b/src/helper/replacements.h @@ -161,6 +161,9 @@ static __inline void outb(unsigned char value, unsigned short int port) __asm__ __volatile__ ("outb %b0,%w1": :"a" (value), "Nd" (port)); } +/* mingw does not have ffs, so use gcc builtin types */ +#define ffs __builtin_ffs + #endif /* IS_MINGW */ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv); |