FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 09-23-2012, 10:11 AM
Allan McRae
 
Default Remove Cygwin support

Signed-off-by: Allan McRae <allan@archlinux.org>
---
configure.ac | 5 -----
src/pacman/pacman.c | 5 ++---
2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 434e2ba..40952ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,13 +301,8 @@ case "${host_os}" in
SIZECMD="stat -f %z"
SEDINPLACE="sed -i """
;;
- cygwin*)
- host_os_cygwin=yes
- AC_DEFINE([CYGWIN], [1], [Define if host OS is cygwin])
- ;;
esac

-AM_CONDITIONAL([CYGWIN], test "x$host_os_cygwin" = "xyes")
AC_PATH_PROGS([DUPATH], [du], [du], [/usr/bin$PATH_SEPARATOR/bin] )
AC_SUBST(INODECMD)
AC_SUBST(SIZECMD)
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 478196e..0e60646 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -755,8 +755,7 @@ int main(int argc, char *argv[])
size_t i;
struct sigaction new_action, old_action;
const int signals[] = { SIGHUP, SIGINT, SIGTERM, SIGSEGV };
-#if defined(HAVE_GETEUID) && !defined(CYGWIN)
- /* geteuid undefined in CYGWIN */
+#if defined(HAVE_GETEUID)
uid_t myuid = geteuid();
#endif

@@ -877,7 +876,7 @@ int main(int argc, char *argv[])
config->logmask &= ~ALPM_LOG_WARNING;
}

-#if defined(HAVE_GETEUID) && !defined(CYGWIN)
+#if defined(HAVE_GETEUID)
/* check if we have sufficient permission for the requested operation */
if(myuid > 0 && needs_root()) {
pm_printf(ALPM_LOG_ERROR, _("you cannot perform this operation unless you are root.
"));
--
1.7.12.1
 

Thread Tools




All times are GMT. The time now is 12:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org