Add inet_pton emulation for platforms that lack it. Only support IPv4 at

this point.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@582 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-02-23 09:30:31 +00:00
parent 7050dbfdae
commit adad7dc672
5 changed files with 80 additions and 1 deletions

12
src/polypcore/inet_pton.h Normal file
View file

@ -0,0 +1,12 @@
#ifndef fooinet_ptonhfoo
#define fooinet_ptonhfoo
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include "winsock.h"
int inet_pton(int af, const char *src, void *dst);
#endif