aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-io-pth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/assuan-io-pth.c')
-rw-r--r--src/assuan-io-pth.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/assuan-io-pth.c b/src/assuan-io-pth.c
index 6064ec4..e24d435 100644
--- a/src/assuan-io-pth.c
+++ b/src/assuan-io-pth.c
@@ -1,20 +1,20 @@
/* assuan-io-pth.c - Pth version of assua-io.c.
- * Copyright (C) 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
- *
- * This file is part of Assuan.
- *
- * Assuan is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * Assuan is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ Copyright (C) 2002, 2004, 2006-2009 Free Software Foundation, Inc.
+
+ This file is part of Assuan.
+
+ Assuan is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ Assuan is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
@@ -110,7 +110,8 @@ _assuan_simple_sendmsg (assuan_context_t ctx, struct msghdr *msg)
#endif
{
#if defined(HAVE_W32_SYSTEM)
- return _assuan_error (ASSUAN_Not_Implemented);
+ errno = ENOSYS;
+ return -1;
#else
/* Pth does not provide a sendmsg function. Thus we implement it here. */
int ret;
@@ -151,7 +152,8 @@ _assuan_simple_recvmsg (assuan_context_t ctx, struct msghdr *msg)
#endif
{
#if defined(HAVE_W32_SYSTEM)
- return _assuan_error (ASSUAN_Not_Implemented);
+ errno = ENOSYS;
+ return -1;
#else
/* Pth does not provide a recvmsg function. Thus we implement it here. */
int ret;