| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 +++ b/src/main.cc | 309 +++ b/src/main.cc |
| 310 @@ -35,6 +35,8 @@ | 310 @@ -35,6 +35,8 @@ |
| 311 #include "../version.h" | 311 #include "../version.h" |
| 312 | 312 |
| 313 #include <stdio.h> | 313 #include <stdio.h> |
| 314 +#include <string.h> | 314 +#include <string.h> |
| 315 +#include <stdlib.h> | 315 +#include <stdlib.h> |
| 316 | 316 |
| 317 | 317 |
| 318 static void showHelp(int exitval) { | 318 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 | 319 diff --git a/util/Makefile.in b/util/Makefile.in |
| 332 --- a/util/Makefile.in | 320 --- a/util/Makefile.in |
| 333 +++ b/util/Makefile.in | 321 +++ b/util/Makefile.in |
| 334 @@ -282,10 +282,10 @@ clean-binPROGRAMS: | 322 @@ -282,10 +282,10 @@ clean-binPROGRAMS: |
| 335 done | 323 done |
| 336 bsetroot$(EXEEXT): $(bsetroot_OBJECTS) $(bsetroot_DEPENDENCIES) | 324 bsetroot$(EXEEXT): $(bsetroot_OBJECTS) $(bsetroot_DEPENDENCIES) |
| 337 @rm -f bsetroot$(EXEEXT) | 325 @rm -f bsetroot$(EXEEXT) |
| 338 - $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) | 326 - $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) |
| 339 + $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) $(EXTRA_LIBS) | 327 + $(CXXLINK) $(bsetroot_LDFLAGS) $(bsetroot_OBJECTS) $(bsetroot_LDADD) $(L
IBS) $(EXTRA_LIBS) |
| 340 bstyleconvert$(EXEEXT): $(bstyleconvert_OBJECTS) $(bstyleconvert_DEPENDENCIES) | 328 bstyleconvert$(EXEEXT): $(bstyleconvert_OBJECTS) $(bstyleconvert_DEPENDENCIES) |
| 341 @rm -f bstyleconvert$(EXEEXT) | 329 @rm -f bstyleconvert$(EXEEXT) |
| 342 - $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) | 330 - $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) |
| 343 + $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) $(EXTRA_LIBS) | 331 + $(CXXLINK) $(bstyleconvert_LDFLAGS) $(bstyleconvert_OBJECTS) $(bstylecon
vert_LDADD) $(LIBS) $(EXTRA_LIBS) |
| 344 install-binSCRIPTS: $(bin_SCRIPTS) | 332 install-binSCRIPTS: $(bin_SCRIPTS) |
| 345 @$(NORMAL_INSTALL) | 333 @$(NORMAL_INSTALL) |
| 346 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" | 334 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" |
| 347 diff --git a/util/bsetroot.cc b/util/bsetroot.cc | 335 diff --git a/util/bsetroot.cc b/util/bsetroot.cc |
| 348 --- a/util/bsetroot.cc | 336 --- a/util/bsetroot.cc |
| 349 +++ b/util/bsetroot.cc | 337 +++ b/util/bsetroot.cc |
| 350 @@ -31,6 +31,8 @@ | 338 @@ -31,6 +31,8 @@ |
| 351 | 339 |
| 352 #include <X11/Xatom.h> | 340 #include <X11/Xatom.h> |
| 353 #include <stdio.h> | 341 #include <stdio.h> |
| 354 +#include <stdlib.h> | 342 +#include <stdlib.h> |
| 355 +#include <string.h> | 343 +#include <string.h> |
| 356 | 344 |
| 357 | 345 |
| 358 // ignore all X errors | 346 // 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 |