mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 12:01:00 +00:00
don't panic if libpsyc isnt available
This commit is contained in:
parent
63038a5049
commit
47232884b9
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user