[haiku-development] Re: __BEOS__

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 13 Mar 2011 10:18:09 +0100

Hi,

Am 13.03.2011 10:08, schrieb Clemens:
short question: is __BEOS__ defined under Haiku? If yes where?

No, this #define has been removed a long time ago, among other things in order to encourage a cleanup of ports. The problem was that many ports did something unnecessary, for example because Haiku is more POSIX compliant and BeOS workarounds were no longer needed.

here the background:

in bug #7365 i see a similar crash in ssl as described here:

http://marc.info/?l=openssl-users&m=119064775713372&w=2

I took a look at the ssl source and if OPENSSL_SYS_BEOS is defined:

#elif defined(OPENSSL_SYS_BEOS)
ret=(unsigned long)find_thread(NULL);
#else

the correct thread id should be returned. OPENSSL_SYS_BEOS is defined here:

/* --------------------------------- BeOS
---------------------------------- */
#if defined(__BEOS__)
# define OPENSSL_SYS_BEOS
# include <sys/socket.h>
# if defined(BONE_VERSION)
# define OPENSSL_SYS_BEOS_BONE
# else
# define OPENSSL_SYS_BEOS_R5
# endif
#endif

Does it is correct for haiku?

No, it is not correct. Either what the ssl lib does for other platforms is already correct on Haiku, or it is broken.

Best regards,
-Stephan


Other related posts: