| OLD | NEW |
| 1 diff --git a/configure b/configure | 1 diff --git a/configure b/configure |
| 2 --- a/configure | 2 --- a/configure |
| 3 +++ b/configure | 3 +++ b/configure |
| 4 @@ -20734,7 +20734,7 @@ if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then | 4 @@ -20734,7 +20734,7 @@ if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then |
| 5 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5 echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6 else | 6 else |
| 7 ac_check_lib_save_LIBS=$LIBS | 7 ac_check_lib_save_LIBS=$LIBS |
| 8 -LIBS="-lX11 $LIBS" | 8 -LIBS="-lX11 $LIBS" |
| 9 +LIBS="-lX11 -lxcb -lXau $LIBS" | 9 +LIBS="-lX11 -lxcb -lXau $LIBS" |
| 10 cat >conftest.$ac_ext <<_ACEOF | 10 cat >conftest.$ac_ext <<_ACEOF |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 --- a/src/BlackboxResource.cc | 206 --- a/src/BlackboxResource.cc |
| 207 +++ b/src/BlackboxResource.cc | 207 +++ b/src/BlackboxResource.cc |
| 208 @@ -33,6 +33,7 @@ | 208 @@ -33,6 +33,7 @@ |
| 209 #include <X11/Xutil.h> | 209 #include <X11/Xutil.h> |
| 210 #include <X11/cursorfont.h> | 210 #include <X11/cursorfont.h> |
| 211 | 211 |
| 212 +#include <strings.h> | 212 +#include <strings.h> |
| 213 | 213 |
| 214 BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) { | 214 BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) { |
| 215 screen_resources = 0; | 215 screen_resources = 0; |
| 216 diff --git a/src/Makefile.in b/src/Makefile.in | |
| 217 --- a/src/Makefile.in | |
| 218 +++ b/src/Makefile.in | |
| 219 @@ -302,7 +302,7 @@ clean-binPROGRAMS: | |
| 220 done | |
| 221 blackbox$(EXEEXT): $(blackbox_OBJECTS) $(blackbox_DEPENDENCIES) | |
| 222 @rm -f blackbox$(EXEEXT) | |
| 223 - $(CXXLINK) $(blackbox_LDFLAGS) $(blackbox_OBJECTS) $(blackbox_LDADD) $(L
IBS) | |
| 224 + $(CXXLINK) $(blackbox_LDFLAGS) $(blackbox_OBJECTS) $(blackbox_LDADD) $(L
IBS) $(EXTRA_LIBS) | |
| 225 | |
| 226 mostlyclean-compile: | |
| 227 -rm -f *.$(OBJEXT) | |
| 228 diff --git a/src/Screen.cc b/src/Screen.cc | 216 diff --git a/src/Screen.cc b/src/Screen.cc |
| 229 --- a/src/Screen.cc | 217 --- a/src/Screen.cc |
| 230 +++ b/src/Screen.cc | 218 +++ b/src/Screen.cc |
| 231 @@ -47,6 +47,7 @@ | 219 @@ -47,6 +47,7 @@ |
| 232 #include <assert.h> | 220 #include <assert.h> |
| 233 #include <ctype.h> | 221 #include <ctype.h> |
| 234 #include <dirent.h> | 222 #include <dirent.h> |
| 235 +#include <string.h> | 223 +#include <string.h> |
| 236 | 224 |
| 237 | 225 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 +++ b/src/main.cc | 297 +++ b/src/main.cc |
| 310 @@ -35,6 +35,8 @@ | 298 @@ -35,6 +35,8 @@ |
| 311 #include "../version.h" | 299 #include "../version.h" |
| 312 | 300 |
| 313 #include <stdio.h> | 301 #include <stdio.h> |
| 314 +#include <string.h> | 302 +#include <string.h> |
| 315 +#include <stdlib.h> | 303 +#include <stdlib.h> |
| 316 | 304 |
| 317 | 305 |
| 318 static void showHelp(int exitval) { | 306 static void showHelp(int exitval) { |
| 319 @@ -72,6 +74,11 @@ static void showHelp(int exitval) { | |
| 320 ::exit(exitval); | |
| 321 } | |
| 322 | |
| 323 +#if defined(__native_client__) | |
| 324 +#include "nacl_main.h" | |
| 325 +#define main nacl_main | |
| 326 +#endif | |
| 327 + | |
| 328 int main(int argc, char **argv) { | |
| 329 const char *dpy_name = 0; | |
| 330 std::string rc_file; | |
| 331 diff --git a/util/Makefile.in b/util/Makefile.in | |
| 332 --- a/util/Makefile.in | |
| 333 +++ b/util/Makefile.in | |
| 334 @@ -282,10 +282,10 @@ clean-binPROGRAMS: | |
| 335 done | |
| 336 bsetroot$(EXEEXT): $(bsetroot_OBJECTS) $(bsetroot_DEPENDENCIES) | |
| 337 @rm -f bsetroot$(EXEEXT) | |
| 338 - $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) | |
| 339 + $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) $(EXTRA_LIBS) | |
| 340 bstyleconvert$(EXEEXT): $(bstyleconvert_OBJECTS) $(bstyleconvert_DEPENDENCIES) | |
| 341 @rm -f bstyleconvert$(EXEEXT) | |
| 342 - $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) | |
| 343 + $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) $(EXTRA_LIBS) | |
| 344 install-binSCRIPTS: $(bin_SCRIPTS) | |
| 345 @$(NORMAL_INSTALL) | |
| 346 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" | |
| 347 diff --git a/util/bsetroot.cc b/util/bsetroot.cc | 307 diff --git a/util/bsetroot.cc b/util/bsetroot.cc |
| 348 --- a/util/bsetroot.cc | 308 --- a/util/bsetroot.cc |
| 349 +++ b/util/bsetroot.cc | 309 +++ b/util/bsetroot.cc |
| 350 @@ -31,6 +31,8 @@ | 310 @@ -31,6 +31,8 @@ |
| 351 | 311 |
| 352 #include <X11/Xatom.h> | 312 #include <X11/Xatom.h> |
| 353 #include <stdio.h> | 313 #include <stdio.h> |
| 354 +#include <stdlib.h> | 314 +#include <stdlib.h> |
| 355 +#include <string.h> | 315 +#include <string.h> |
| 356 | 316 |
| 357 | 317 |
| 358 // ignore all X errors | 318 // ignore all X errors |
| 359 @@ -339,6 +341,11 @@ void bsetroot::usage(int exit_code) { | |
| 360 exit(exit_code); | |
| 361 } | |
| 362 | |
| 363 +#if defined(__native_client__) | |
| 364 +# include "nacl_main.h" | |
| 365 +# define main nacl_main | |
| 366 +#endif | |
| 367 + | |
| 368 int main(int argc, char **argv) { | |
| 369 char *display_name = 0; | |
| 370 bool multi_head = False; | |
| 371 diff --git a/util/bstyleconvert.cc b/util/bstyleconvert.cc | |
| 372 --- a/util/bstyleconvert.cc | |
| 373 +++ b/util/bstyleconvert.cc | |
| 374 @@ -710,6 +710,10 @@ void writeStyle(const std::string &filename, const NewStyle
&style) | |
| 375 } | |
| 376 | |
| 377 | |
| 378 +#if defined(__native_client__) | |
| 379 +# include "nacl_main.h" | |
| 380 +# define main nacl_main | |
| 381 +#endif | |
| 382 | |
| 383 int main(int argc, char* argv[]) { | |
| 384 for (int i = 1; i < argc; ++i) { | |
| OLD | NEW |