Skip to content

Commit

Permalink
libotutil: Remove redundant import of prctl.h
Browse files Browse the repository at this point in the history
sys/prctl.h already provides prctl.h and adding both imports fails on
musl libc:

	/usr/include/sys/prctl.h:88:8: error: redefinition of 'struct prctl_mm_map'
	   88 | struct prctl_mm_map {
	      |        ^~~~~~~~~~~~
	In file included from src/libotutil/ot-unix-utils.c:33:
	/usr/include/linux/prctl.h:134:8: note: originally defined here
	  134 | struct prctl_mm_map {
	      |        ^~~~~~~~~~~~
  • Loading branch information
fossdd committed Jan 27, 2025
1 parent 24d4730 commit e82bb38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libotutil/ot-unix-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <errno.h>
#include <fcntl.h>
#include <linux/capability.h>
#include <linux/prctl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
Expand Down

0 comments on commit e82bb38

Please sign in to comment.