Skip to content

Commit

Permalink
Merge pull request #996 from Qwinci/fix-glibc-icmp
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 authored Feb 17, 2024
2 parents 8ec986f + bcff3ec commit ebf6fbb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#ifndef _NETINET_ICMP6_H
#define _NETINET_ICMP6_H
#ifndef _GLIBC_NETINET_ICMP6_H
#define _GLIBC_NETINET_ICMP6_H

#ifdef __cplusplus
extern "C" {
Expand All @@ -18,5 +17,5 @@ extern "C" {
}
#endif

#endif /* _NETINET_ICMP6_H */
#endif /* _GLIBC_NETINET_ICMP6_H */

2 changes: 1 addition & 1 deletion options/glibc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ if not no_headers
)
install_headers(
'include/netinet/in_systm.h',
'include/netinet/icmp6.h',
subdir: 'netinet'
)
install_headers(
'include/bits/glibc/glibc_signal.h',
'include/bits/glibc/glibc_assert.h',
'include/bits/glibc/glibc_malloc.h',
'include/bits/glibc/glibc_icmp6.h',
subdir: 'bits/glibc'
)
endif
Expand Down
5 changes: 5 additions & 0 deletions options/posix/include/netinet/icmp6.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ extern "C" {

#include <stdint.h>
#include <abi-bits/in.h>
#include <mlibc-config.h>

#if __MLIBC_GLIBC_OPTION
#include <bits/glibc/glibc_icmp6.h>
#endif // __MLIBC_GLIBC_OPTION

#define ICMP6_FILTER 1

Expand Down

0 comments on commit ebf6fbb

Please sign in to comment.