From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16689 invoked by alias); 22 Mar 2012 17:16:02 -0000 Received: (qmail 16676 invoked by uid 22791); 22 Mar 2012 17:16:01 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-bk0-f43.google.com (HELO mail-bk0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Mar 2012 17:15:48 +0000 Received: by bkwj5 with SMTP id j5so2593992bkw.2 for ; Thu, 22 Mar 2012 10:15:46 -0700 (PDT) Received: by 10.204.148.80 with SMTP id o16mr3468056bkv.3.1332436546771; Thu, 22 Mar 2012 10:15:46 -0700 (PDT) Received: from [172.21.193.109] (85-18-126-22.ip.fastwebnet.it. [85.18.126.22]) by mx.google.com with ESMTPS id f5sm11135787bke.9.2012.03.22.10.15.45 (version=SSLv3 cipher=OTHER); Thu, 22 Mar 2012 10:15:45 -0700 (PDT) Message-ID: <4F6B5E3F.8020808@gmail.com> Date: Thu, 22 Mar 2012 17:16:00 -0000 From: marco atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: GetDriveType on gnulib Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-03/txt/msg00600.txt.bz2 Hi Eric Blake, this portion of your gnulib code ---------------------------------------------- #ifdef __CYGWIN__ #include #define ME_REMOTE me_remote /* All cygwin mount points include `:' or start with `//'; so it requires a native Windows call to determine remote disks. */ static int me_remote (char const *fs_name, char const *fs_type _GL_UNUSED) { if (fs_name[0] && fs_name[1] == ':') { char drive[4]; sprintf (drive, "%c:\\", fs_name[0]); switch (GetDriveType (drive)) { case DRIVE_REMOVABLE: case DRIVE_FIXED: case DRIVE_CDROM: case DRIVE_RAMDISK: return 0; } } return 1; } #endif ------------------------------------- has been reused on midnight commander 4.8.x , but on cygwin-1.7.11, the #include is causing: CC libmcfilemanager_la-mountlist.lo In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/objbase.h:73:0, from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/ole2.h:9, from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windows.h:114, from /pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c:217: /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/objidl.h:95:3: error: expected identifier or '(' before string constant /pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c:222:53: error: expected ';', ',' or ')' before '_GL_UNUSED' /pub/devel/mc/mc-4.8.1.1-1/src/mc-4.8.1.1/src/filemanager/mountlist.c: In function 'read_file_system_list': idea about the possible culprit ? Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple