aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-defs.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2007-07-08 15:53:35 +0000
committerMarcus Brinkmann <[email protected]>2007-07-08 15:53:35 +0000
commit12d756396fb2fd7232b7650ebaa41de7da303546 (patch)
tree55c6e59ddc45b82b493109221017d07d5e589a68 /src/assuan-defs.h
parentSwitched to LGPLv3. (diff)
downloadlibassuan-12d756396fb2fd7232b7650ebaa41de7da303546.tar.gz
libassuan-12d756396fb2fd7232b7650ebaa41de7da303546.zip
2007-07-08 Marcus Brinkmann <[email protected]>
* assuan-defs.h (struct assuan_context_s): Have full peercred structure for HAVE_SO_PEERCRED. * assuan-connect.c (assuan_get_peercred) [!HAVE_SO_PEERCRED]: Do not try to set PID, UID and GID.
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r--src/assuan-defs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h
index 9ee230d..b1d9f3e 100644
--- a/src/assuan-defs.h
+++ b/src/assuan-defs.h
@@ -5,7 +5,7 @@
*
* 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 3 of
+ * 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
@@ -14,7 +14,9 @@
* 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/>.
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ * USA.
*/
#ifndef ASSUAN_DEFS_H
@@ -140,11 +142,11 @@ struct assuan_context_s
struct {
int valid; /* Whether this structure has valid information. */
-#ifndef HAVE_W32_SYSTEM
+#ifdef HAVE_SO_PEERCRED
pid_t pid; /* The pid of the peer. */
uid_t uid; /* The uid of the peer. */
gid_t gid; /* The gid of the peer. */
-#endif /* HAVE_W32_SYSTEM */
+#endif /* HAVE_SO_PEERCRED */
} peercred;
/* Used for Unix domain sockets. */