Skip to content

Commit

Permalink
Define PROG, for newer versions of skalibs
Browse files Browse the repository at this point in the history
Needed to build from our source tarball on some Gentoo systems.

Closes #239.
Closes #254.
  • Loading branch information
kmcallister authored and keithw committed May 5, 2012
1 parent 7ac8b87 commit 5cff456
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/examples/benchmark.cc
Expand Up @@ -46,6 +46,11 @@
#include "locale_utils.h" #include "locale_utils.h"
#include "fatal_assert.h" #include "fatal_assert.h"


/* For newer skalibs */
extern "C" {
const char *PROG = "benchmark";
}

const int ITERATIONS = 100000; const int ITERATIONS = 100000;


using namespace Terminal; using namespace Terminal;
Expand Down
5 changes: 5 additions & 0 deletions src/examples/termemu.cc
Expand Up @@ -52,6 +52,11 @@
#include "locale_utils.h" #include "locale_utils.h"
#include "sigfd.h" #include "sigfd.h"


/* For newer skalibs */
extern "C" {
const char *PROG = "termemu";
}

const size_t buf_size = 16384; const size_t buf_size = 16384;


void emulate_terminal( int fd ); void emulate_terminal( int fd );
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/mosh-client.cc
Expand Up @@ -30,6 +30,11 @@
#include <curses.h> #include <curses.h>
#include <term.h> #include <term.h>


/* For newer skalibs */
extern "C" {
const char *PROG = "mosh-client";
}

void usage( const char *argv0 ) { void usage( const char *argv0 ) {
fprintf( stderr, "mosh-client (%s)\n", PACKAGE_STRING ); fprintf( stderr, "mosh-client (%s)\n", PACKAGE_STRING );
fprintf( stderr, "Copyright 2012 Keith Winstein <mosh-devel@mit.edu>\n" ); fprintf( stderr, "Copyright 2012 Keith Winstein <mosh-devel@mit.edu>\n" );
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/mosh-server.cc
Expand Up @@ -68,6 +68,11 @@


#include "networktransport.cc" #include "networktransport.cc"


/* For newer skalibs */
extern "C" {
const char *PROG = "mosh-server";
}

typedef Network::Transport< Terminal::Complete, Network::UserStream > ServerConnection; typedef Network::Transport< Terminal::Complete, Network::UserStream > ServerConnection;


void serve( int host_fd, void serve( int host_fd,
Expand Down

0 comments on commit 5cff456

Please sign in to comment.