mailing list of musl libc
 help / color / mirror / code / Atom feed
* termios.h problem (IUTF8)
@ 2013-09-15 20:15 Paul Schutte
  2013-09-15 20:21 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Schutte @ 2013-09-15 20:15 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

Hi Rich,

I am wrestling with systemd on Sabotage. I am using musl 0.9.13.
(The git version is the same regarding this problem)

I get the following error:

src/shared/util.c: In function 'reset_terminal_fd':
src/shared/util.c:1786:46: error: 'IUTF8' undeclared (first use in this
function)
src/shared/util.c:1786:46: note: each undeclared identifier is reported
only once for each function it appears in

I can make it work by doing the following. (Stolen from you mips
bits/termios.h file)

 --- include/bits/termios.h      2013-08-30 21:30:53.000000000 +0000
+++ /usr/include/bits/termios.h 2013-09-15 20:04:47.082909059 +0000
@@ -42,6 +42,7 @@
 #define IXANY   0004000
 #define IXOFF   0010000
 #define IMAXBEL 0020000
+#define IUTF8   0040000

 #define OPOST  0000001
 #define OLCUC  0000002



Can you please have a look whether this is correct ?

Regards
Paul

[-- Attachment #2: Type: text/html, Size: 1093 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: termios.h problem (IUTF8)
  2013-09-15 20:15 termios.h problem (IUTF8) Paul Schutte
@ 2013-09-15 20:21 ` Rich Felker
  2013-09-15 21:01   ` Paul Schutte
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2013-09-15 20:21 UTC (permalink / raw)
  To: musl

On Sun, Sep 15, 2013 at 10:15:38PM +0200, Paul Schutte wrote:
> Hi Rich,
> 
> I am wrestling with systemd on Sabotage. I am using musl 0.9.13.
> (The git version is the same regarding this problem)
> 
> I get the following error:
> 
> src/shared/util.c: In function 'reset_terminal_fd':
> src/shared/util.c:1786:46: error: 'IUTF8' undeclared (first use in this
> function)
> src/shared/util.c:1786:46: note: each undeclared identifier is reported
> only once for each function it appears in
> 
> I can make it work by doing the following. (Stolen from you mips
> bits/termios.h file)

Yes, I think it's correct. I* is reserved for termios.h so no
namespace protection is needed. However the correct value may vary
per-arch. Go ahead and use this for your own use for now, and I'll
either find the correct values for the other archs or get someone else
to look into it so we can upstream the fix.

Rich


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: termios.h problem (IUTF8)
  2013-09-15 20:21 ` Rich Felker
@ 2013-09-15 21:01   ` Paul Schutte
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Schutte @ 2013-09-15 21:01 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

Thanks


On Sun, Sep 15, 2013 at 10:21 PM, Rich Felker <dalias@aerifal.cx> wrote:

> On Sun, Sep 15, 2013 at 10:15:38PM +0200, Paul Schutte wrote:
> > Hi Rich,
> >
> > I am wrestling with systemd on Sabotage. I am using musl 0.9.13.
> > (The git version is the same regarding this problem)
> >
> > I get the following error:
> >
> > src/shared/util.c: In function 'reset_terminal_fd':
> > src/shared/util.c:1786:46: error: 'IUTF8' undeclared (first use in this
> > function)
> > src/shared/util.c:1786:46: note: each undeclared identifier is reported
> > only once for each function it appears in
> >
> > I can make it work by doing the following. (Stolen from you mips
> > bits/termios.h file)
>
> Yes, I think it's correct. I* is reserved for termios.h so no
> namespace protection is needed. However the correct value may vary
> per-arch. Go ahead and use this for your own use for now, and I'll
> either find the correct values for the other archs or get someone else
> to look into it so we can upstream the fix.
>
> Rich
>

[-- Attachment #2: Type: text/html, Size: 1502 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-15 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-15 20:15 termios.h problem (IUTF8) Paul Schutte
2013-09-15 20:21 ` Rich Felker
2013-09-15 21:01   ` Paul Schutte

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).