I am trying to compile openttd-0.7.2 for PSP. Now I get an error with
pthread:
Code: Select all
thread_pthread.cpp:14: error: ‘pthread_t’ does not name a type
Code: Select all
#include "stdafx.h"
#include "thread.h"
#include <pthread.h>
/**
* POSIX pthread version for ThreadObject.
*/
class ThreadObject_pthread : public ThreadObject {
private:
pthread_t thread; ///< System thread identifier.
OTTDThreadFunc proc; ///< External thread procedure.
void *param; ///< Parameter for the external thread procedure.
bool self_destruct; ///< Free ourselves when done?
public:
In the Makefile I also have
Code: Select all
-I/usr/share/psp-dev/psp/include
the above one.
What is going wrong?