~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/internal/my_redel.cc

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "mysys/mysys_priv.h"
17
 
#include <mystrings/m_string.h>
18
 
#include "mysys/mysys_err.h"
 
16
#include "drizzled/internal/mysys_priv.h"
 
17
#include "drizzled/internal/m_string.h"
 
18
#include "drizzled/my_error.h"
19
19
#if defined(HAVE_UTIME_H)
20
20
#include <utime.h>
21
21
#elif defined(HAVE_SYS_UTIME_H)
26
26
  time_t modtime;
27
27
};
28
28
#endif
 
29
#ifdef HAVE_SYS_STAT_H
 
30
# include <sys/stat.h>
 
31
#endif
29
32
 
30
33
        /*
31
34
          Rename with copy stat form old file
75
78
 
76
79
  if (stat((char*) from, &statbuf))
77
80
  {
78
 
    my_errno=errno;
 
81
    errno=errno;
79
82
    if (MyFlags & (MY_FAE+MY_WME))
80
83
      my_error(EE_STAT, MYF(ME_BELL+ME_WAITTANG),from,errno);
81
84
    return -1;                          /* Can't get stat on input file */