[haiku-commits] Re: haiku: hrev47655 - headers/posix src/bin src/apps src/kits src/kits/tracker

  • From: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx, haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 27 Aug 2014 12:33:40 -0500

On , Jérôme Duval wrote:
2014-08-27 18:02 GMT+02:00 Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>:
Hm, I agree but a lot of projects may not accept these patches.
Windows provides only "string.h", so changing to strings.h breaks things
that
build on Windows + UNIX.

I just tried to get a change into Mesa and they rejected as it "works
everywhere else at the moment"


Just search for "strings.h patches", that's not like we're the first
to apply to the specs anyway.

strings.h only defines two functions... we're going to require a large number
patches across all open source software for two functions?

This is a one line fix.  #include <strings.h> in string.h

Hell, make it a 3 line fix and put some comments saying it is "for legacy compatibility"

I agree POSIX says it should be done the way it is now and it is correct... however every Linux / UNIX system I can find rolls these functions into string.h as well. As Linux is what 99% of those people writing POSIX software for these days, why not go with the flow here? (Even though every other OS is wrong and stupid for screwing up POSIX :P)

 -- Alex

Other related posts: