Correct fix for Mantis #24909 : some systems (Linux, OpenBSD) use the one order while other systems use the other (FreeBSD, NetBSD).

+ add a define for each of the two orders
* fail if none of the two defines is defined ( => for porting to new systems)
+ use the order as specified by the define


git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25581 3ad0048d-3df7-0310-abae-a5850022a9f2