Skip to contentSkip to conversation

xenomai: fix build failure when HAVE_OPEN64 is undefined

PATCH Superseded Romain Naour 2 participants 4 messages Dec 29, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenomai: fix build failure when HAVE_OPEN64 is undefined

---
 ...uild-failure-when-HAVE_OPEN64-is-undefine.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch
package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch new file +30 -0
new file mode 100644
index 0000000..ce43676
@@ -0,0 +1,30 @@
+From 71345fe15f126ae3a596af309945d0af6edfbbbb Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 29 Dec 2013 18:00:25 +0100
+Subject: [PATCH 1/1] posix: fix build failure when HAVE_OPEN64 is undefined.
+
+fixes: http://autobuild.buildroot.org/results/d59/d590be34637a4043c929ce615f9db504484be435/build-end.log
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+ 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;
+ 	}
+-- 
+1.8.1.4
+
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/1 xenomai: fix build failure when HAVE_OPEN64 is undefined

Romain, All,

On 2013-12-29 22:05 +0100, Romain Naour spake thusly:

Quoted 3 lines

This is an upstream patch, so:

Quoted 11 lines
---
 ...uild-failure-when-HAVE_OPEN64-is-undefine.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch
package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch new file +0 -0
new file mode 100644
index 0000000..ce43676

package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch line 8

Quoted 8 lines
package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch new file +8 -0
@@ -0,0 +1,30 @@
+From 71345fe15f126ae3a596af309945d0af6edfbbbb Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 29 Dec 2013 18:00:25 +0100
+Subject: [PATCH 1/1] posix: fix build failure when HAVE_OPEN64 is undefined.
+
+fixes: http://autobuild.buildroot.org/results/d59/d590be34637a4043c929ce615f9db504484be435/build-end.log
+
+Signed-off-by: Romain Naour <[email protected]>

It would be nice to say that this is an upstream patch, so it finds its way into Buildroot quickly. ;-)

Something like:

    Upstream patch:
    http://git.xenomai.org/xenomai-2.6.git/commit/?id=71345fe15f126ae3a596af309945d0af6edfbbbb

Regards,
Yann E. MORIN.

Quoted 29 lines
package/xenomai/xenomai-0002-posix-fix-build-failure-when-HAVE_OPEN64-is-undefine.patch new file +22 -0
+---
+ 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;
+ 	}
+-- 
+1.8.1.4
+
Signature · 6 lines
1.8.1.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 xenomai: fix build failure when HAVE_OPEN64 is undefined

Le 29/12/2013 22:24, Yann E. MORIN a ?crit :

Quoted 4 lines

It would be nice to say that this is an upstream patch, so it finds its way into Buildroot quickly. ;-)

Quoted 8 lines

Something like:

     Upstream patch:
     http://git.xenomai.org/xenomai-2.6.git/commit/?id=71345fe15f126ae3a596af309945d0af6edfbbbb

Regards,
Yann E. MORIN.

Hi Yann,

I did it with the previous patch on xenomai, but I forgot this time :-/ I'll resend this patch with an updated commit log.

Thanks,
Romain Naour

#3 lore raw

PATCH 1/1 xenomai: fix build failure when HAVE_OPEN64 is undefined

Romain, All,

On 2013-12-29 23:02 +0100, Romain Naour spake thusly:

Quoted 11 lines

Le 29/12/2013 22:24, Yann E. MORIN a ?crit :

Quoted 7 lines

It would be nice to say that this is an upstream patch, so it finds its way into Buildroot quickly. ;-)

Something like:

    Upstream patch:
    http://git.xenomai.org/xenomai-2.6.git/commit/?id=71345fe15f126ae3a596af309945d0af6edfbbbb

I did it with the previous patch on xenomai, but I forgot this time :-/ I'll resend this patch with an updated commit log.

Thank you! Don't forget to add my acked-by! ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'