along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iscsi.h"
#include "iscsi-private.h"
#include "dlinklist.h"
+#if HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
static void set_nonblocking(int fd)
{
int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_command_cb cb, void *private_data)
{
- int tpgt = -1;
int port = 3260;
char *str;
char *addr;
/* check if we have a target portal group tag */
if ((str = rindex(addr, ',')) != NULL) {
- tpgt = atoi(str+1);
str[0] = 0;
}