Skip to content

Commit

Permalink
libusbgx: fix build with glibc-2.28 since <sys/sysmacros.h> is no mor…
Browse files Browse the repository at this point in the history
…e included by <sys/types.h>
  • Loading branch information
trabucayre committed Sep 10, 2018
1 parent 6ffbb21 commit aae2a70
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/gadget-acm-ecm.c
Expand Up @@ -20,6 +20,7 @@

#include <errno.h>
#include <stdio.h>
#include <sys/sysmacros.h>
#include <linux/usb/ch9.h>
#include <usbg/usbg.h>

Expand Down
1 change: 1 addition & 0 deletions examples/gadget-import.c
Expand Up @@ -25,6 +25,7 @@
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <sys/sysmacros.h>
#include <usbg/usbg.h>

int main(int argc, char **argv)
Expand Down
1 change: 1 addition & 0 deletions examples/gadget-ms.c
Expand Up @@ -23,6 +23,7 @@

#include <errno.h>
#include <stdio.h>
#include <sys/sysmacros.h>
#include <linux/usb/ch9.h>
#include <usbg/usbg.h>
#include <usbg/function/ms.h>
Expand Down
1 change: 1 addition & 0 deletions examples/show-gadgets.c
Expand Up @@ -21,6 +21,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/sysmacros.h>
#include <netinet/ether.h>
#include <usbg/usbg.h>
#include <usbg/function/ms.h>
Expand Down
1 change: 1 addition & 0 deletions examples/show-udcs.c
Expand Up @@ -23,6 +23,7 @@

#include <errno.h>
#include <stdio.h>
#include <sys/sysmacros.h>
#include <usbg/usbg.h>

int main(void)
Expand Down
1 change: 1 addition & 0 deletions include/usbg/usbg_internal_libconfig.h
Expand Up @@ -12,6 +12,7 @@
#ifndef USBG_INTERNAL_LIBCONFIG_H
#define USBG_INTERNAL_LIBCONFIG_H

#include <sys/sysmacros.h>
#include <libconfig.h>
#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit aae2a70

Please sign in to comment.