[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: defines.h



  User: cnieves 
  Date: 07/06/09 11:38:37

  Modified:    .        defines.h
  Log:
  Fix for lack of permission-related file attributes on MinGW.
  
  
  
  Applied patch #1733728, with some tweaks, from Cesar Strauss. Thanks.
  
  Define some file permissions as 0 if they are not defined.
  
  Don't use chown if it is not available.
  
  
  
  
  Revision  Changes    Path
  1.59                 eda/geda/gaf/libgeda/include/defines.h
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: defines.h
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/include/defines.h,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -b -r1.58 -r1.59
  --- defines.h	3 Dec 2006 02:27:13 -0000	1.58
  +++ defines.h	9 Jun 2007 15:38:36 -0000	1.59
  @@ -366,3 +366,20 @@
   
   /* Backup filename creation string */
   #define AUTOSAVE_BACKUP_FILENAME_STRING "#%s#"
  +
  +/* These permission bits are absent on MinGW */
  +#ifndef S_IWGRP
  +# define S_IWGRP 0
  +#endif
  +#ifndef S_IWOTH
  +# define S_IWOTH 0
  +#endif
  +#ifndef S_IXGRP
  +# define S_IXGRP 0
  +#endif
  +#ifndef S_IXOTH
  +# define S_IXOTH 0
  +#endif
  +#ifndef S_IRWXG
  +# define S_IRWXG 0
  +#endif
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs