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>

Signed-off-by: Sid Spry R030t1@gmail.com
Signed-off-by: Gwenhael Goavec-Merou gwenhael.goavec-merou@trabucayre.com
[Copy sign-offs from pull requst to commit msg]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
  • Loading branch information
trabucayre authored and kopasiak committed Sep 12, 2018
1 parent 6ffbb21 commit 45c14ef
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 45c14ef

Please sign in to comment.