[haiku-development] ssize_t?

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: Haiku Development <haiku-development@xxxxxxxxxxxxx>
  • Date: Sun, 15 Jul 2012 18:30:07 -0700


I'm trying to compile Jon Yoder's Filer app, but it keeps finding a need
for ssize_t deep in the nest of system headers, but it doesn't get defined.

In file included from /boot/develop/headers/bsd/unistd.h:9:0,
                 from /boot/develop/headers/posix/fcntl.h:11,
                 from /boot/develop/headers/os/storage/StorageDefs.h:9,
                 from /boot/develop/headers/os/kernel/OS.h:14,
                 from /boot/develop/headers/os/interface/InterfaceDefs.h:10,
                 from /boot/develop/headers/os/interface/Alignment.h:8,
                 from /boot/develop/headers/os/interface/View.h:9,
                 from ./ActionView.h:9,
                 from ActionView.cpp:6:
/boot/develop/headers/posix/unistd.h:162:8: error: 'ssize_t' does not name a 

The type seems to be defined by including <sys/types.h>' (which finds
it in size_t.h), but I assume Jon didn't have to do this four years ago
when he wrote it, so what's changed?  Do I have to go through all
the sources and insert that include in all the required places, or
is there something I'm missing?

I see that 'stddef.h' is entirely missing.  I guess this is intentional?
Looks like pretty much a no-op in BeOS Intel.

        -- Pete --

Other related posts: