1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

don't panic if libpsyc isnt available

This commit is contained in:
psyc://psyced.org/~lynX 2011-05-24 16:16:56 +02:00
parent 63038a5049
commit 47232884b9
4 changed files with 12 additions and 0 deletions

View file

@ -1,4 +1,7 @@
// $Id: active.c,v 1.1 2008/01/30 17:06:48 lynx Exp $ // vim:syntax=lpc
#include "psyc.h"
#ifdef LIBPSYC
#include "../psyc/active.c"
#endif // LIBPSYC

View file

@ -2,6 +2,7 @@
// $Id: circuit.c,v 1.38 2008/10/14 19:02:29 lynx Exp $
#include "psyc.h"
#ifdef LIBPSYC
#include <net.h>
#include <uniform.h>
@ -298,3 +299,4 @@ varargs int msg(string source, string mc, string data,
return emit(buf);
}
#endif // LIBPSYC

View file

@ -2,6 +2,9 @@
// $Id: parse.c,v 1.30 2008/12/18 18:16:14 lynx Exp $
#include "psyc.h"
#ifdef LIBPSYC // net/spyc currently doesn't work without libpsyc
// and probably never will.. will delete the old code soon
#include <net.h>
#include <input_to.h>
@ -470,3 +473,5 @@ test() {
}
# endif
#endif // !LIBPSYC
#endif // LIBPSYC

View file

@ -4,6 +4,7 @@
// the thing that answers on port 4404 of psyced.
#include "psyc.h"
#ifdef LIBPSYC
#include <net.h>
#include <services.h>
@ -191,3 +192,4 @@ void circuit_msg(string mc, mapping vars, string data) {
}
}
#endif // LIBPSYC