summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-12-16 22:03:51 +1000
committerAllan McRae <allan@archlinux.org>2013-01-03 12:03:10 +1000
commit5aaf5bcf830cb808de2484c0f3860a22a21a79b4 (patch)
tree035436cbdc635bf1acc3c06dd8ce3bcc0d218df2
parent23f93118d05ff9219fa22b58a54e0f7d2c54ad86 (diff)
Remove Cygwin support
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--configure.ac5
-rw-r--r--src/pacman/pacman.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index faa0792f..122f3876 100644
--- a/configure.ac
+++ b/configure.ac
@@ -309,10 +309,6 @@ 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])
- ;;
darwin*)
host_os_darwin=yes
INODECMD="/usr/bin/stat -f '%i %n'"
@@ -324,7 +320,6 @@ case "${host_os}" in
;;
esac
-AM_CONDITIONAL([CYGWIN], test "x$host_os_cygwin" = "xyes")
AM_CONDITIONAL([DARWIN], test "x$host_os_darwin" = "xyes")
AC_PATH_PROGS([DUPATH], [du], [du], [/usr/bin$PATH_SEPARATOR/bin] )
AC_SUBST(INODECMD)
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 06783180..2c49fe97 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -758,8 +758,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
@@ -881,7 +880,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.\n"));