mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-15 15:16:53 +02:00
Deprecate <bsd/inet.h>
The only function declared in that header file was inet_net_pton, which is already provided by glibc. Will be removed on the next SONAME bump.
This commit is contained in:
@@ -27,12 +27,9 @@
|
||||
#ifndef LIBBSD_INET_H
|
||||
#define LIBBSD_INET_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <stddef.h>
|
||||
#warning "This header is deprecated, use the one in arpa/inet.h instead."
|
||||
|
||||
__BEGIN_DECLS
|
||||
int inet_net_pton(int af, const char *src, void *dst, siez_t size);
|
||||
__END_DECLS
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user