From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932605AbcILRxG (ORCPT ); Mon, 12 Sep 2016 13:53:06 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:35803 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754694AbcILRFf (ORCPT ); Mon, 12 Sep 2016 13:05:35 -0400 From: Willem de Bruijn To: netdev@vger.kernel.org Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, john.stultz@linaro.rg, bmoses@google.com, Willem de Bruijn Subject: [PATCH net-next 2/2] errqueue: include linux/time.h Date: Mon, 12 Sep 2016 13:05:30 -0400 Message-Id: <1473699930-58865-3-git-send-email-willemdebruijn.kernel@gmail.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1473699930-58865-1-git-send-email-willemdebruijn.kernel@gmail.com> References: <1473699930-58865-1-git-send-email-willemdebruijn.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Willem de Bruijn struct scm_timestamping has fields of type struct timespec. Now that it is safe to include linux/time.h and time.h at the same time, include linux/time.h directly in linux/errqueue.h Without this patch, when compiling the following program after make headers_install: gcc -Wall -Werror -Iusr/include -c -xc - < static struct scm_timestamping tss; int main(void) { tss.ts[0].tv_sec = 1; return 0; } EOF gcc gives this error: In file included from :1:0: usr/include/linux/errqueue.h:33:18: error: array type has incomplete element type struct timespec ts[3]; Reported-by: Brooks Moses Signed-off-by: Willem de Bruijn --- include/uapi/linux/errqueue.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/errqueue.h b/include/uapi/linux/errqueue.h index 07bdce1..abafec8 100644 --- a/include/uapi/linux/errqueue.h +++ b/include/uapi/linux/errqueue.h @@ -1,6 +1,7 @@ #ifndef _UAPI_LINUX_ERRQUEUE_H #define _UAPI_LINUX_ERRQUEUE_H +#include #include struct sock_extended_err { -- 2.8.0.rc3.226.g39d4020