Fixes for scanner/parser from OSX.
authorBrian Aker <brian@tangent.org>
Tue, 15 Jan 2013 23:14:48 +0000 (15:14 -0800)
committerBrian Aker <brian@tangent.org>
Tue, 15 Jan 2013 23:14:48 +0000 (15:14 -0800)
libmemcached/csl/common.h
libmemcached/csl/scanner.l
libtest/cmdline.cc
libtest/result.cc
man/include.am

index 325d36fe92d868a22ed2563ef1f39002637a015a..60b27d6e3cdbdb7226ed4d6d959ff8a0d52115e7 100644 (file)
 
 #pragma once
 
+
+#ifndef YY_EXTRA_TYPE
+# define YY_EXTRA_TYPE Context*
+#endif
+
+#ifndef YY_TYPEDEF_YY_SCANNER_T
+# define YY_TYPEDEF_YY_SCANNER_T
+typedef void* yyscan_t;
+#endif
+
 #include <libmemcached/common.h>
 #include <libmemcached/csl/server.h>
 
index e35008a8da37f768e1f5c62206b84738a6098f33..4bb5c30cc4f930a7e0f292046c0c17ea6d369398 100644 (file)
@@ -61,8 +61,6 @@
 #endif
 #endif
 
-#define YY_EXTRA_TYPE Context*
-
 }
 
 
index 5e723350002cd22f8dbe22d23f64e2b3e3f65f68..c8b63eece89de8356b487daf5ecc281d2f01677e 100644 (file)
@@ -595,11 +595,12 @@ void Application::Pipe::reset()
   _open[1]= true;
 
 #if defined(HAVE_PIPE2) && HAVE_PIPE2
+  return;
+#endif
   {
     nonblock();
     cloexec();
   }
-#endif
 }
 
 void Application::Pipe::cloexec()
index 1cf615b156ec0dd0403c6108ba25cf80d498ba6d..ae37e8d24fd5ae7920db90acb9f1084bb9a95f59 100644 (file)
 #include <libtest/common.h>
 #include <cstdarg>
 
+#ifndef __INTEL_COMPILER
+# pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
+
 namespace libtest {
 
 __test_result::__test_result(const char *file_arg, int line_arg, const char *func_arg):
index 3b68557a7937836efb7dd92770c4043742f099ee..512edc400cfc7783d41032e39dd2b7fb9191da37 100644 (file)
@@ -15,6 +15,7 @@ BUILT_SOURCES+= $(dist_man_MANS)
 endif
 endif
 
+if HAVE_RECENT_SPHINX
 dist_man_MANS+= man/memaslap.1
 dist_man_MANS+= man/memcapable.1
 dist_man_MANS+= man/memcat.1
@@ -133,3 +134,4 @@ dist_man_MANS+= man/memcached_touch.3
 dist_man_MANS+= man/memcached_touch_by_key.3
 dist_man_MANS+= man/memcached_verbosity.3
 dist_man_MANS+= man/memcached_version.3
+endif