Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470156 - einfo-1.0.3 (baselayout-prefix-2.2-r2): AIX lacks <sys/termios.h>, and SUSv2 specifies <termios.h>
Summary: einfo-1.0.3 (baselayout-prefix-2.2-r2): AIX lacks <sys/termios.h>, and SUSv2 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 12:24 UTC by Michael Haubenwallner (RETIRED)
Modified: 2013-05-17 15:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haubenwallner (RETIRED) gentoo-dev 2013-05-17 12:24:57 UTC
http://prefix.gentooexperimental.org:8000/einfo/rev/0e22f6b5de43

On AIX, there is this compiler error in einfo-1.0.3/src/libeinfo/

libeinfo.c:36:25: fatal error: sys/termios.h: No such file or directory

Solaris/HP-UX/Linux/Interix all have <termios.h>, with <sys/termios.h> redirecting to each other in one or the other way.

And SUSv2 specifies <termios.h> anyway:
http://pubs.opengroup.org/onlinepubs/007908799/xsh/termios.h.html

So this should be:
--- einfo-1.0.3/src/libeinfo/libeinfo.c.orig
+++ einfo-1.0.3/src/libeinfo/libeinfo.c
@@ -33,7 +33,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
-#include <sys/termios.h>
+#include <termios.h>
 
 #include <errno.h>
 #include <fcntl.h>

Thank you!
Comment 1 Fabian Groffen gentoo-dev 2013-05-17 12:45:38 UTC
darwin has it too

Please push, iirc, you can, you do have an account on p.ge.o don't you?  If not, please send me your key.
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2013-05-17 15:27:08 UTC
http://prefix.gentooexperimental.org:8000/einfo/rev/7e6a3af95282