Commits

R. Tyler Ballance  committed 59368af

Support building on BSD/ppc

(builds and passes all tests on NetBSD/macppc 5.0.2)

  • Participants
  • Parent commits f41e306

Comments (0)

Files changed (1)

File slp_platformselect.h

  * Platform Selection for Stackless Python
  */
 
+#include <sys/param.h>
+
 #if   defined(MS_WIN32) && !defined(MS_WIN64) && defined(_M_IX86)
 #include "platform/switch_x86_msvc.h" /* MS Visual Studio on X86 */
 #elif defined(__GNUC__) && defined(__amd64__)
 #include "platform/switch_amd64_unix.h" /* gcc on amd64 */
 #elif defined(__GNUC__) && defined(__i386__)
 #include "platform/switch_x86_unix.h" /* gcc on X86 */
-#elif defined(__GNUC__) && defined(__PPC__) && defined(__linux__)
+#elif defined(__GNUC__) && (defined(__PPC__) || defined(__powerpc__)) && \
+	 (defined(__linux__) || defined(BSD))
 #include "platform/switch_ppc_unix.h" /* gcc on PowerPC */
 #elif defined(__GNUC__) && defined(__ppc__) && defined(__APPLE__)
 #include "platform/switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */