From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52C08B52.5000701@xenomai.org> Date: Sun, 29 Dec 2013 21:51:30 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <1388336425-1139-1-git-send-email-romain.naour@openwide.fr> <52C06262.1030404@xenomai.org> <52C0894B.305@openwide.fr> In-Reply-To: <52C0894B.305@openwide.fr> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai] [PATCH 1/1] posix: fix build failure when HAVE_OPEN64 is undefined. List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Romain Naour Cc: xenomai@xenomai.org On 12/29/2013 09:42 PM, Romain Naour wrote: > Le 29/12/2013 18:56, Gilles Chanteperdrix a écrit : >> On 12/29/2013 06:00 PM, Romain Naour wrote: >>> fixes: http://autobuild.buildroot.org/results/d59/d590be34637a4043c929ce615f9db504484be435/build-end.log >>> >>> Signed-off-by: Romain Naour >>> --- >>> src/skins/posix/rtdm.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/src/skins/posix/rtdm.c b/src/skins/posix/rtdm.c >>> index 5840c64..d6c87dc 100644 >>> --- a/src/skins/posix/rtdm.c >>> +++ b/src/skins/posix/rtdm.c >>> @@ -107,8 +107,9 @@ int __wrap_open64(const char *path, int oflag, ...) >>> errno = EMFILE; >>> ret = -1; >>> } >>> + } >>> #endif >>> - } else { >>> + else { >>> errno = -ret; >>> ret = -1; >>> } >>> >> xenomai-2.6$ git apply ~/foo.eml >> /home/gilles/foo.eml:79: trailing whitespace. >> } >> /home/gilles/foo.eml:82: trailing whitespace. >> else { >> error: patch failed: src/skins/posix/rtdm.c:107 >> error: src/skins/posix/rtdm.c: patch does not apply >> >> Are you working from xenomai-2.6 git? >> > I have no error while I do: > git diff --check HEAD HEAD~1 > > But I'm able to reproduce this error when I save the email to foo.eml > with Thunderbird... > > Have you whitespace errors with my previous patch too ? git am accepts the patch, it seems git apply does not because of whitespace issues. I believe you did not introduce the whitespace issues, they were there before. > > Best regards, > Romain Naour > -- Gilles.