Skip to content

include correct header for hostent #2853

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

Merged
merged 1 commit into from
Aug 30, 2018
Merged

include correct header for hostent #2853

merged 1 commit into from
Aug 30, 2018

Conversation

kroening
Copy link
Member

Windows does not have netdb.h; must use windows.h instead.

@@ -46,6 +56,8 @@ struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type)

/* FUNCTION: gethostent */

#include <netdb.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the Windows variant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did look this up, but Windows does not appear to have gethostent.

@kroening kroening force-pushed the gethostbyname-windows branch from ec5a9e5 to 74c74c5 Compare August 30, 2018 13:43
@kroening kroening force-pushed the gethostbyname-windows branch from 74c74c5 to 8be9671 Compare August 30, 2018 13:44
@kroening kroening merged commit 62e24f1 into develop Aug 30, 2018
@kroening kroening deleted the gethostbyname-windows branch August 30, 2018 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants