Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port.h: include <sys/time.h> #34

Closed
wants to merge 1 commit into from
Closed

port.h: include <sys/time.h> #34

wants to merge 1 commit into from

Conversation

ffontaine
Copy link
Contributor

Include <sys/time.h> to avoid the following build failure on musl:

port.h:361:29: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
     const char *str, struct timeval *tv,
                             ^~~~~~~
portconfig.c: In function 'myconfig':
portconfig.c:586:9: error: variable 'tv' has initializer but incomplete type
  struct timeval tv = { 0, 0 };
         ^~~~~~~

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Include <sys/time.h> to avoid the following build failure on musl:

port.h:361:29: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
     const char *str, struct timeval *tv,
                             ^~~~~~~
portconfig.c: In function 'myconfig':
portconfig.c:586:9: error: variable 'tv' has initializer but incomplete type
  struct timeval tv = { 0, 0 };
         ^~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/4c0b238186cb2fb2d81807ce006945594f92b2cd

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@cminyard
Copy link
Owner

It's merged, thanks.

@cminyard cminyard closed this Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants