[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pam-list
Subject:    C++ pam_misc.h patch
From:       Alexandre Sagala <asagala () eclipsys ! qc ! ca>
Date:       2001-04-30 20:51:43
[Download RAW message or body]

I posted an error I got a couple of days ago when I compiled a C++ app I 
made using the pam_misc.h header file.  It returned an error compaining about 
an anonymous type . I finally figure out what was wrong . There is an 

#ifdef __cplusplus
extern "C" {
#endif

missing in pam_misc.h . Here is a patch to correct this. I did not try this 
against anything else.


["pam_misc.diff" (text/x-c)]

--- /usr/include/security/pam_misc.h	Mon Apr 30 16:47:39 2001
+++ pam_misc.h	Mon Apr 30 16:47:19 2001
@@ -3,6 +3,10 @@
 #ifndef __PAMMISC_H
 #define __PAMMISC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <security/pam_appl.h>
 #include <security/pam_client.h>
 
@@ -50,6 +54,9 @@
 
 extern int pam_misc_setenv(pam_handle_t *pamh, const char *name
 			   , const char *value, int readonly);
+#ifdef __cplusplus
+}
+#endif
 
 #endif
  

_______________________________________________
Pam-list mailing list
Pam-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic