diff mbox

[5/7] tools/blktap2: Update sys/signal.h to signal.h

Message ID 1481928967-4130-6-git-send-email-alistair.francis@xilinx.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alistair Francis Dec. 16, 2016, 10:56 p.m. UTC
To avoid this build error with newer build systems:
    error: #warning redirecting incorrect #include <sys/signal.h> to
           <signal.h> [-Werror=cpp]

Rename sys/signal.h to signal.h

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
---
 tools/blktap2/drivers/tapdisk-server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Konrad Rzeszutek Wilk Dec. 17, 2016, 3:56 p.m. UTC | #1
On Fri, Dec 16, 2016 at 02:56:05PM -0800, Alistair Francis wrote:
> To avoid this build error with newer build systems:
>     error: #warning redirecting incorrect #include <sys/signal.h> to
>            <signal.h> [-Werror=cpp]

And what is the 'newer build system' you speak off?

Thanks!
> 
> Rename sys/signal.h to signal.h
> 
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> ---
>  tools/blktap2/drivers/tapdisk-server.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/blktap2/drivers/tapdisk-server.c b/tools/blktap2/drivers/tapdisk-server.c
> index eecde3d..71315bb 100644
> --- a/tools/blktap2/drivers/tapdisk-server.c
> +++ b/tools/blktap2/drivers/tapdisk-server.c
> @@ -30,7 +30,7 @@
>  #include <unistd.h>
>  #include <stdlib.h>
>  #include <sys/ioctl.h>
> -#include <sys/signal.h>
> +#include <signal.h>
>  
>  #include "tapdisk-utils.h"
>  #include "tapdisk-server.h"
> -- 
> 2.7.4
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
Alistair Francis Dec. 19, 2016, 6:02 p.m. UTC | #2
On Sat, Dec 17, 2016 at 7:56 AM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Fri, Dec 16, 2016 at 02:56:05PM -0800, Alistair Francis wrote:
>> To avoid this build error with newer build systems:
>>     error: #warning redirecting incorrect #include <sys/signal.h> to
>>            <signal.h> [-Werror=cpp]
>
> And what is the 'newer build system' you speak off?

Sorry I should have specified more there.

It's GCC 5 that I am seeing the problem on.

Thanks,

Alistair

>
> Thanks!
>>
>> Rename sys/signal.h to signal.h
>>
>> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
>> ---
>>  tools/blktap2/drivers/tapdisk-server.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/blktap2/drivers/tapdisk-server.c b/tools/blktap2/drivers/tapdisk-server.c
>> index eecde3d..71315bb 100644
>> --- a/tools/blktap2/drivers/tapdisk-server.c
>> +++ b/tools/blktap2/drivers/tapdisk-server.c
>> @@ -30,7 +30,7 @@
>>  #include <unistd.h>
>>  #include <stdlib.h>
>>  #include <sys/ioctl.h>
>> -#include <sys/signal.h>
>> +#include <signal.h>
>>
>>  #include "tapdisk-utils.h"
>>  #include "tapdisk-server.h"
>> --
>> 2.7.4
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> https://lists.xen.org/xen-devel
Douglas Goldstein Dec. 20, 2016, 4:01 a.m. UTC | #3
On 12/19/16 12:02 PM, Alistair Francis wrote:
> On Sat, Dec 17, 2016 at 7:56 AM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
>> On Fri, Dec 16, 2016 at 02:56:05PM -0800, Alistair Francis wrote:
>>> To avoid this build error with newer build systems:
>>>     error: #warning redirecting incorrect #include <sys/signal.h> to
>>>            <signal.h> [-Werror=cpp]
>>
>> And what is the 'newer build system' you speak off?
> 
> Sorry I should have specified more there.
> 
> It's GCC 5 that I am seeing the problem on.

Same as the last patch. This is your libc.
diff mbox

Patch

diff --git a/tools/blktap2/drivers/tapdisk-server.c b/tools/blktap2/drivers/tapdisk-server.c
index eecde3d..71315bb 100644
--- a/tools/blktap2/drivers/tapdisk-server.c
+++ b/tools/blktap2/drivers/tapdisk-server.c
@@ -30,7 +30,7 @@ 
 #include <unistd.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
-#include <sys/signal.h>
+#include <signal.h>
 
 #include "tapdisk-utils.h"
 #include "tapdisk-server.h"