#include <config.h>
#include "support/socktools.h"
+
+#if !defined (HAVE_FCNTL)
+// We provide stubs because we don't (yet?) support the native OS API.
+
+namespace lyx {
+namespace support {
+namespace socktools {
+
+int listen(std::string const &, int)
+{
+ return -1;
+}
+
+
+int accept(int)
+{
+ return -1;
+}
+
+} // namespace socktools
+} // namespace support
+} // namespace lyx
+
+#else // defined (HAVE_FCNTL)
+
#include "support/lyxlib.h"
#include "debug.h"
} // namespace socktools
} // namespace support
} // namespace lyx
+
+#endif // defined (HAVE_FCNTL)