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

Add check versions of functions #641

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

gordicaleksa
Copy link
Contributor

Add socket close check functions - consistent with the rest of the codebase.

@@ -15,6 +15,10 @@
// implementation of dirent for Windows is in dev/unistd.h
#ifndef _WIN32
#include <dirent.h>
#include <arpa/inet.h>
#else
Copy link
Contributor

Choose a reason for hiding this comment

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

You may be able to move the winsock2.h file into dev/unistd.h. I would try to remove the pragma (if possible) and use an explicit /link Ws2_32.lib in LDLIBS in the Windows section of the Makefile (but have not tested this).

@karpathy karpathy merged commit f0abd09 into karpathy:master Jul 2, 2024
13 checks passed
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.

3 participants