Browse Source

Fix another Visual C++ 2008/2010 deficiency (closes #53)

Thanks to oldfaber.
Stéphane Raimbault 13 years ago
parent
commit
c15da6c09e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modbus-private.h

+ 2 - 1
src/modbus-private.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright © 2010-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2010-2012 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  *
  * This library is free software; you can redistribute it and/or
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * modify it under the terms of the GNU Lesser General Public
@@ -25,6 +25,7 @@
 #else
 #else
 # include "stdint.h"
 # include "stdint.h"
 # include <time.h>
 # include <time.h>
+typedef int ssize_t;
 #endif
 #endif
 #include <sys/types.h>
 #include <sys/types.h>
 #include <config.h>
 #include <config.h>