* [mingw32] DUMA's missing include
@ 2013-06-11 6:49 Filipp Andjelo
2013-06-17 22:20 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Filipp Andjelo @ 2013-06-11 6:49 UTC (permalink / raw)
To: crossgcc
Hi,
I just built the i686-unknown-mingw32 toolchain, where I got errors
about undefined symbol building DUMA. There was one include missing to
build it for mingw32. It is my first time here and I currently don't
know a better way to commit a patch. If it was wrong, just tell how I
could make it better next time :)
Filipp
diff -durN duma_2_5_15.orig/print.c duma_2_5_15/print.c
--- duma_2_5_15.orig/print.c 2013-06-11 08:19:32.929986085 +0200
+++ duma_2_5_15/print.c 2013-06-11 08:21:07.369983168 +0200
@@ -42,7 +42,7 @@
#include <windows.h>
#include <winbase.h>
#include <io.h>
-
+ #include <fcntl.h>
#ifndef __CYGWIN__
/* already defined in cygwin headers */
typedef LPVOID caddr_t;
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mingw32] DUMA's missing include
2013-06-11 6:49 [mingw32] DUMA's missing include Filipp Andjelo
@ 2013-06-17 22:20 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2013-06-17 22:20 UTC (permalink / raw)
To: Filipp Andjelo; +Cc: crossgcc
Filipp, All,
On 2013-06-11 06:49 +0000, Filipp Andjelo spake thusly:
> I just built the i686-unknown-mingw32 toolchain, where I got errors
> about undefined symbol building DUMA. There was one include missing to
> build it for mingw32. It is my first time here and I currently don't
> know a better way to commit a patch. If it was wrong, just tell how I
> could make it better next time :)
No problem, we are ahere to learn! :-)
The patch below is a patch against duma, not against crosstool-NG.
I'd suggest you submit htis patch to upstream DUMA first
Then:
- add this file in patches/duma/2_5_15/100-fix-mingw32-build.patch
- send here a patch that adds this file
Do not forget to sign-off your work:
http://elinux.org/Developer_Certificate_Of_Origin
> diff -durN duma_2_5_15.orig/print.c duma_2_5_15/print.c
> --- duma_2_5_15.orig/print.c 2013-06-11 08:19:32.929986085 +0200
> +++ duma_2_5_15/print.c 2013-06-11 08:21:07.369983168 +0200
> @@ -42,7 +42,7 @@
> #include <windows.h>
> #include <winbase.h>
> #include <io.h>
> -
> + #include <fcntl.h>
Please keep the indentation already used in this file.
> #ifndef __CYGWIN__
> /* already defined in cygwin headers */
> typedef LPVOID caddr_t;
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-17 22:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 6:49 [mingw32] DUMA's missing include Filipp Andjelo
2013-06-17 22:20 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).