9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plan9port and gcc header files?
@ 2005-08-25 20:14 rattan
  2005-08-25 22:59 ` William Josephson
  2005-08-25 23:07 ` Russ Cox
  0 siblings, 2 replies; 3+ messages in thread
From: rattan @ 2005-08-25 20:14 UTC (permalink / raw)
  To: 9fans


Is there a way to use gcc include files with plan9
include files in plan9port? E.g:

#include <u.h>
#include <libc.h>
#include <socket.h>	// from Linux side
..

-ishwar



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

* Re: [9fans] Plan9port and gcc header files?
  2005-08-25 20:14 [9fans] Plan9port and gcc header files? rattan
@ 2005-08-25 22:59 ` William Josephson
  2005-08-25 23:07 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: William Josephson @ 2005-08-25 22:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, Aug 25, 2005 at 04:14:33PM -0400, rattan wrote:
> Is there a way to use gcc include files with plan9
> include files in plan9port? E.g:
> 
> #include <u.h>
> #include <libc.h>
> #include <socket.h>	// from Linux side

It should just work if you define NOPLAN9DEFINES at the top.
You may need to use separate compilation to get access to the
Plan 9 routines you can't any longer see.  What do you need
out of socket.h?  You can get a lot just with dial and friends.


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

* Re: [9fans] Plan9port and gcc header files?
  2005-08-25 20:14 [9fans] Plan9port and gcc header files? rattan
  2005-08-25 22:59 ` William Josephson
@ 2005-08-25 23:07 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Russ Cox @ 2005-08-25 23:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Is there a way to use gcc include files with plan9
> include files in plan9port? E.g:

Put them between <u.h> and <libc.h>,
as described in intro(3).
http://swtch.com/plan9port/man/man3/intro.html

Russ


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

end of thread, other threads:[~2005-08-25 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25 20:14 [9fans] Plan9port and gcc header files? rattan
2005-08-25 22:59 ` William Josephson
2005-08-25 23:07 ` Russ Cox

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).