*** original/main.cpp	Fri Apr 30 10:07:27 2010
--- main.cpp	Thu Apr 29 17:21:50 2010
***************
*** 6,13 ****
  #include <fcntl.h>
  #include <libgen.h>
  #include <signal.h>
! #include <pwd.h>
! #include <grp.h>
  
  #include "mythconfig.h"
  #if CONFIG_DARWIN
--- 6,15 ----
  #include <fcntl.h>
  #include <libgen.h>
  #include <signal.h>
! #ifndef _WIN32
!   #include <pwd.h>
!   #include <grp.h>
! #endif
  
  #include "mythconfig.h"
  #if CONFIG_DARWIN
***************
*** 870,875 ****
--- 872,879 ----
  
      if (!username.isEmpty())
      {
+        
+ #ifndef _WIN32
          struct passwd *user_info = getpwnam(username.toLocal8Bit().constData());
          const uid_t user_id = geteuid();
  
***************
*** 914,919 ****
--- 918,930 ----
                      .arg(username));
              return BACKEND_EXIT_PERMISSIONS_ERROR;
          }
+ #else
+         {
+             VERBOSE(VB_IMPORTANT,
+                     "You cannot use -user switch in Windows.");
+             return BACKEND_EXIT_PERMISSIONS_ERROR;
+         }
+ #endif
      }
  
      if (pidfs)
