GNU file utilities
[gnulib.git] / lib / mountlist.c
index 4528c9e..aaf28ea 100644 (file)
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+   using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+   (which it would do because it found this file in $srcdir).  */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
 #include <stdio.h>
 #include <sys/types.h>
 #include "mountlist.h"
@@ -98,7 +109,7 @@ xatoi (cp)
      char *cp;
 {
   int val;
-  
+
   val = 0;
   while (*cp)
     {
@@ -375,7 +386,7 @@ read_filesystem_list (need_fs_type, all_fs)
        me->me_type =  xstrdup ((*ent)->mt_fstype);
        me->me_dev = -1;        /* Magic; means not known yet. */
        me->me_next = NULL;
-       
+
        /* Add to the linked list. */
        mtail->me_next = me;
        mtail = me;
@@ -448,7 +459,7 @@ read_filesystem_list (need_fs_type, all_fs)
          }
        else
          {
-           me->me_devname = xstrdup (thisent + 
+           me->me_devname = xstrdup (thisent +
                                      vmp->vmt_data[VMT_OBJECT].vmt_off);
          }
        me->me_mountdir = xstrdup (thisent + vmp->vmt_data[VMT_STUB].vmt_off);