[PATCH] support C libs w/out System V shared memory/ipc

Dmitry V. Levin ldv at altlinux.org
Sat Oct 31 13:57:04 UTC 2015


Hi,

On Sat, Oct 31, 2015 at 12:47:53AM -0400, Mike Frysinger wrote:
> diff --git a/ipc_msg.c b/ipc_msg.c
> index 55747cb..2fc7470 100644
> --- a/ipc_msg.c
> +++ b/ipc_msg.c
> @@ -31,9 +31,7 @@
>   */
>  
>  #include "defs.h"
> -
> -#include <sys/ipc.h>
> -#include <sys/msg.h>
> +#include "ipc_defs.h"
>  
>  #include "xlat/ipc_msg_flags.h"
>  #include "xlat/resource_flags.h"

I suppose <sys/msg.h> is required for "xlat/ipc_msg_flags.h"

> diff --git a/ipc_shm.c b/ipc_shm.c
> index 4a41690..03f38ab 100644
> --- a/ipc_shm.c
> +++ b/ipc_shm.c
> @@ -32,8 +32,6 @@
>  
>  #include "defs.h"
>  
> -#include <sys/shm.h>
> -
>  #include "xlat/shm_resource_flags.h"
>  #include "xlat/shm_flags.h"

Likewise, <sys/shm.h> is required for "xlat/shm_resource_flags.h"

> diff --git a/ipc_shmctl.c b/ipc_shmctl.c
> index 4bd6c85..c4b9f75 100644
> --- a/ipc_shmctl.c
> +++ b/ipc_shmctl.c
> @@ -33,11 +33,20 @@
>  #include "defs.h"
>  #include "ipc_defs.h"
>  
> -#include <sys/shm.h>
> -
>  #include DEF_MPERS_TYPE(shmid_ds_t)

If I remember correctly, <sys/shm.h> has to be included before
DEF_MPERS_TYPE(shmid_ds_t).


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20151031/f7382adb/attachment.bin>


More information about the Strace-devel mailing list