--- ./src/pam_google_authenticator.c_orig	2024-09-20 05:24:47.359705706 -0500
+++ ./src/pam_google_authenticator.c	2024-09-20 12:56:15.202276122 -0500
@@ -110,7 +110,11 @@
   va_start(args, format);
 #if !defined(DEMO) && !defined(TESTING)
   openlog(logname, LOG_CONS | LOG_PID, LOG_AUTHPRIV);
-  vsyslog(priority, format, args);
+  #ifndef _AIX
+      vsyslog(priority, format, args);
+  #else
+      syslog(priority, format);
+  #endif
   closelog();
 #else
   if (!error_msg) {
@@ -152,7 +156,7 @@
 
 static const char *get_user_name(pam_handle_t *pamh, const Params *params) {
   // Obtain the user's name
-  const char *username;
+  char *username;
   if (pam_get_user(pamh, &username, NULL) != PAM_SUCCESS ||
       !username || !*username) {
     log_message(LOG_ERR, pamh,
@@ -1071,7 +1075,7 @@
 
 // Show error message to the user.
 static void
-conv_error(pam_handle_t *pamh, const char* text) {
+conv_error(pam_handle_t *pamh, char* text) {
   PAM_CONST struct pam_message msg = {
     .msg_style = PAM_ERROR_MSG,
     .msg       = text,
