mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-06-18 19:50:33 +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:
parent
7da57b293f
commit
4d17a18db5
3
Versions
3
Versions
@ -9,7 +9,8 @@ LIBBSD_0.0 {
|
|||||||
fmtcheck;
|
fmtcheck;
|
||||||
heapsort;
|
heapsort;
|
||||||
humanize_number;
|
humanize_number;
|
||||||
inet_net_pton;
|
|
||||||
|
inet_net_pton; /* XXX: Already provided by glibc, remove. */
|
||||||
|
|
||||||
getprogname; setprogname;
|
getprogname; setprogname;
|
||||||
strlcpy;
|
strlcpy;
|
||||||
|
@ -27,12 +27,9 @@
|
|||||||
#ifndef LIBBSD_INET_H
|
#ifndef LIBBSD_INET_H
|
||||||
#define LIBBSD_INET_H
|
#define LIBBSD_INET_H
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#warning "This header is deprecated, use the one in arpa/inet.h instead."
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
#include <arpa/inet.h>
|
||||||
int inet_net_pton(int af, const char *src, void *dst, siez_t size);
|
|
||||||
__END_DECLS
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user