use ioctl.h instead of ttycom.h on Linux
Subsystems (2)
PATCH 1/1 use ioctl.h instead of ttycom.h on Linux
When compiling nfs-utils-1.1.6, I get this error:
arm-iwmmx-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../support/include -isystem /home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/include -isystem /home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/usr/include -D_GNU_SOURCE -Wall -Wstrict-prototypes -pipe -g -O2 -MT sm_inter_svc.o -MD -MP -MF .deps/sm_inter_svc.Tpo -c -o sm_inter_svc.o sm_inter_svc.c sm_inter_svc.c:10:39: error: sys/ttycom.h: No such file or directory
Use sys/ioctl.h instead.
--- tools/rpcgen/rpc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/rpcgen/rpc_main.c +1 -1
@@ -550,7 +550,7 @@ s_output(int argc, char **argv, char *inf_print (fout,"#include <sys/ttycom.h>/* TIOCNOTTY */\n" );#else if ( !tirpcflag ) -f_print (fout,"#include <sys/ttycom.h>/* TIOCNOTTY */\n" ); +f_print (fout,"#include <sys/ioctl.h>/* TIOCNOTTY */\n" );#endif if ( Cflag && (inetdflag || pmflag ) ) {f_print (fout,"#ifdef __cplusplus\n" );
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 12 lines · On Sunday 03 May 2009 06:58:29 Robert Schwebel wrote:
When compiling nfs-utils-1.1.6, I get this error:
arm-iwmmx-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../support/include -isystem
/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/include -isystem/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/usr/include -D_GNU_SOURCE -Wall -Wstrict-prototypes -pipe -g -O2 -MT sm_inter_svc.o -MD -MP -MF .deps/sm_inter_svc.Tpo -c -o sm_inter_svc.osm_inter_svc.csm_inter_svc.c:10:39: error:sys/ttycom.h: No such file or directory
Quoted 1 line
Use
sys/ioctl.hinstead.
ive posted a patch or two to fix this, but cant seem to get it merged ...
i.e. your change is of course correct
-mike
Quoted 10 lines · Robert Schwebel
When compiling nfs-utils-1.1.6, I get this error:
arm-iwmmx-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../support/include -isystem
/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/include-isystem/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/usr/include-D_GNU_SOURCE -Wall -Wstrict-prototypes -pipe -g -O2 -MT sm_inter_svc.o -MD -MP -MF .deps/sm_inter_svc.Tpo -c -o sm_inter_svc.osm_inter_svc.csm_inter_svc.c:10:39: error:sys/ttycom.h: No such file or directoryUse
sys/ioctl.hinstead.Signed-off-by Robert Schwebel <[email protected]>---
Committed...
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Steve Dickson
Quoted 5 lines · Robert Schwebel
When compiling nfs-utils-1.1.6, I get this error:
arm-iwmmx-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../support/include -isystem
/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/include-isystem/home/rsc/svn/oselas/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-phyCORE-PXA270.PCM990/sysroot-target/usr/include-D_GNU_SOURCE -Wall -Wstrict-prototypes -pipe -g -O2 -MT sm_inter_svc.o -MD -MP -MF .deps/sm_inter_svc.Tpo -c -o sm_inter_svc.osm_inter_svc.csm_inter_svc.c:10:39: error:sys/ttycom.h: No such file or directory
Quoted 6 lines
Quoted 5 lines
Use
sys/ioctl.hinstead.Signed-off-by Robert Schwebel <[email protected]>---
Committed...
Great, thanks!
rsc
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |