Skip to content

Commit

Permalink
Fix compilation with musl c library (#260)
Browse files Browse the repository at this point in the history
* prefer the POSIX header <poll.h> over <sys/poll.h>

* fix compilation with the musl c library by removing libc5 workaround
  • Loading branch information
doughdemon authored and fklassen committed Oct 2, 2016
1 parent 143253c commit 7c942b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/common/fakepoll.h
Expand Up @@ -40,11 +40,11 @@
#define POLL_NO_WARN
#define SYS_POLL_NO_WARN

#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#define __FAKEPOLL_H
#elif HAVE_POLL_H
#ifdef HAVE_POLL_H
#include <poll.h>
#define __FAKEPOLL_H
#elif HAVE_SYS_POLL_H
#include <sys/poll.h>
#define __FAKEPOLL_H
#endif

Expand Down
4 changes: 0 additions & 4 deletions src/common/sendpacket.c
Expand Up @@ -148,10 +148,6 @@
#include "txring.h"
#endif

#ifndef __GLIBC__
typedef int socklen_t;
#endif

static sendpacket_t *sendpacket_open_pf(const char *, char *);
static struct tcpr_ether_addr *sendpacket_get_hwaddr_pf(sendpacket_t *);
static int get_iface_index(int fd, const char *device, char *);
Expand Down

0 comments on commit 7c942b7

Please sign in to comment.