LRN: Fix automake deps to allow -j* builds again
[oweals/gnunet.git] / src / util / disk.h
index 21c1ab9a1c59824e10150e0852e8706f66ac54f0..793b8219f6cece87200ec423f81d78e524633699 100644 (file)
@@ -40,14 +40,29 @@ struct GNUNET_DISK_FileHandle
    * File handle under W32.\r
    */ \r
   HANDLE h;
-  \r
-#else   /* \r */
+\r
+  /**\r
+   * Type
+   */\r
+  enum {GNUNET_DISK_FILE, GNUNET_PIPE} type;\r
+\r
+  /**\r
+   * Structure for overlapped reading (for pipes)\r
+   */\r
+  OVERLAPPED *oOverlapRead;\r
+\r
+  /**\r
+   * Structure for overlapped writing (for pipes)\r
+   */\r
+  OVERLAPPED *oOverlapWrite;\r
+#else\r
+
   /**\r
    * File handle on other OSes.\r
    */ \r
   int fd;
    \r
-#endif  /* \r */
+#endif                          /* \r */
 };
 \r\r\r\r
 /**\r