aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-05 13:58:48 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-05 13:58:48 -0800
commit4df57fda09c04f71a595154ca6962a95666b3685 (patch)
treef49faae476f3f419df44e4da11690ee8e94f7705 /common.h
parent6f45832aed0136e9f891da8eaa754c2b7f378848 (diff)
Incorporate Siteshwar's patch for building on Linux
Diffstat (limited to 'common.h')
-rw-r--r--common.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/common.h b/common.h
index 5bd420d4..b8cb8d5b 100644
--- a/common.h
+++ b/common.h
@@ -15,6 +15,8 @@
#include <string>
#include <sstream>
#include <vector>
+#include <pthread.h>
+#include <string.h>
#include <errno.h>
#include "util.h"
@@ -72,6 +74,7 @@ typedef std::vector<wcstring> wcstring_list_t;
*/
#define VOMIT_ON_FAILURE(a) do { if (0 != (a)) { int err = errno; fprintf(stderr, "%s failed on line %d in file %s: %d (%s)\n", #a, __LINE__, __FILE__, err, strerror(err)); abort(); }} while (0)
+
/**
Save the shell mode on startup so we can restore them on exit
*/
@@ -366,7 +369,7 @@ wchar_t *wcsvarname( const wchar_t *str );
\return null if this is a valid name, and a pointer to the first invalid character otherwise
*/
-wchar_t *wcsfuncname( const wchar_t *str );
+const wchar_t *wcsfuncname( const wchar_t *str );
/**
Test if the given string is valid in a variable name
@@ -561,6 +564,20 @@ void sb_format_size( string_buffer_t *sb,
*/
double timef();
+/**
+ Call the following function early in main to set the main thread.
+ This is our replacement for pthread_main_np().
+ */
+void set_main_thread();
+
+/**
+
+*/
+
+/**
+
+ */
+
#endif