~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/discover.cc

  • Committer: brian
  • Date: 2008-06-29 12:18:49 UTC
  • Revision ID: brian@localhost.localdomain-20080629121849-2le5txjj7tkdq54f
Fix for stat, NETWARE removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  File   file;
51
51
  size_t read_len;
52
52
  uchar *read_data;
53
 
  MY_STAT state;  
 
53
  struct stat state;  
54
54
  DBUG_ENTER("readfrm");
55
55
  DBUG_PRINT("enter",("name: '%s'",name));
56
56
  
65
65
  
66
66
  // Get length of file
67
67
  error= 2;
68
 
  if (my_fstat(file, &state, MYF(0)))
 
68
  if (fstat(file, &state))
69
69
    goto err;
70
70
  read_len= state.st_size;  
71
71