Skip to content

Commit

Permalink
[libtap] define IFNAMSIZ for applications that don't need/want to inc…
Browse files Browse the repository at this point in the history
…lude net/if.h

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Aug 3, 2018
1 parent e371383 commit fae8123
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libtap/libtap.h
Expand Up @@ -11,6 +11,10 @@

#include <sys/types.h>

#ifndef IFNAMSIZ
#define IFNAMSIZ 16
#endif

typedef struct _iface *tap_t;

tap_t tap_open(char *dev, size_t dev_size, const char *updownpath);
Expand Down

0 comments on commit fae8123

Please sign in to comment.