Linux NFS development
 help / color / mirror / Atom feed
* [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems
@ 2008-04-20 10:49 Mike Frysinger
  2008-10-06 18:10 ` Fwd: " Chuck Lever
  2008-10-08 15:08 ` Steve Dickson
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2008-04-20 10:49 UTC (permalink / raw)
  To: nfs


[-- Attachment #1.1: Type: text/plain, Size: 174 bytes --]

the rpcgen tool included with nfs-utils will generate calls to ioctl() but not 
actually generate the sys/ioctl.h header include.  attached patch should fix 
this.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: nfs-utils-1.1.2-rpcgen-ioctl.patch --]
[-- Type: text/x-diff, Size: 367 bytes --]

--- tools/rpcgen/rpc_main.c
+++ tools/rpcgen/rpc_main.c
@@ -548,6 +548,9 @@
 #ifndef linux
 	if( !tirpcflag && inetdflag )
 	  f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
+#else
+	if( !tirpcflag )
+	  f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
 #endif
 	if( Cflag && (inetdflag || pmflag ) ) {
 	  f_print(fout, "#ifdef __cplusplus\n");

[-- Attachment #3: Type: text/plain, Size: 320 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

[-- Attachment #4: Type: text/plain, Size: 362 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs

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

end of thread, other threads:[~2008-10-08 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-20 10:49 [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems Mike Frysinger
2008-10-06 18:10 ` Fwd: " Chuck Lever
2008-10-08 15:08 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox