Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-990

Possible swig-py windows code cleanup

    XMLWordPrintableJSON

Details

    Description

      By applying the following patch, it is compiling:
      
      Index: swigutil_py.c
      ======================================================
      =============
      --- swigutil_py.c       (revision 3795)
      +++ swigutil_py.c       (working copy)
      @@ -705,9 +705,14 @@
      
         if (PyString_Check (py_file))
           {
      +#ifdef WIN32
      +      fd = open (PyString_AS_STRING (py_file),
      +                 O_CREAT | O_RDWR);
      +#else
             fd = open (PyString_AS_STRING (py_file),
                        O_CREAT | O_RDWR,
                        S_IRUSR | S_IWUSR);
      +#endif
           }
         else if (PyFile_Check (py_file))
           {
      

      Original issue reported by mahae

      Attachments

        1. 4_diff.txt
          22 kB
          Subversion Importer
        2. 3_win32.tar.gz
          3 kB
          Subversion Importer
        3. 2_svn200302251332.diff
          20 kB
          Subversion Importer
        4. 1_swigutil_py.c.diff
          4 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: